swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.93k stars 92 forks source link

Shebang with space dont work #238

Closed matopeto closed 3 years ago

matopeto commented 3 years ago

Hi i have a PHP plugin, and as you write in #236 there is problem with Shebang

But i resolve the issue with

#!/usr/bin/env php

and that resolve the issue when i run my plugin from commandline.

./xcodeBuildTimes.1m.php

But when it is running on swiftbar i get the error:

Screen Shot 2021-11-04 at 18 02 21
melonamin commented 3 years ago

#!/usr/bin/env php picks first php from the $PATH. Check contents of $PATH in SwiftBar plugin.

matopeto commented 3 years ago

Hi @melonamin thanks for quick reply, Where can i check $PATH for swiftbar plugin?

When i run from commandline/terminal it is ok, also ok in xbar, i cannot find any path settings in swiftbar preferences.

melonamin commented 3 years ago

Please refer to discussion in #77, let me know if it doesn't help

matopeto commented 3 years ago

Thanks it was the issue. I switch to zsh in swiftbar settings and PATH is now correct :) thanks again