xbar icon indicating copy to clipboard operation
xbar copied to clipboard

PHP plug-ins disappear and reappear every 5 seconds

Open misfitius opened this issue 3 years ago • 2 comments

A user of my Linode plug-in reported this to me and I see it happens with even the simplest php plug-in. It also happens with the few other php plug-ins I've found in the plug-in browser. Is this only happening for me?

Try this to see:

#!/usr/bin/php

<?php
	echo 'PHP';

misfitius avatar Jul 29 '21 04:07 misfitius

@misfitius I wonder if this is because the script takes a while to spin up and run? It should only happen the first time because xbar doesn't update the menu until the script has finished running.

matryer avatar Aug 28 '21 11:08 matryer

I had the same problem with all my PHP scripts. If you remove the blank line between the #!/usr/bin/php (shebang) and <?php, it works.

ThiSchmidt avatar Mar 07 '24 08:03 ThiSchmidt