matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.56k stars 643 forks source link

What controls path for xbar? #730

Closed Raboo closed 3 years ago

Raboo commented 3 years ago

Hi

Having a shebang like #!/usr/bin/env python3 doesn't seem to work because it doesn't appear to have /usr/local/bin in the path. Instead I have to specify the full path to python3 #!/usr/bin/env /usr/local/bin/python3 or just #!/usr/local/bin/python3

What is it that controls the xbar path? wouldn't it be sane to include /usr/local/bin by default?

sfuerte commented 3 years ago

/usr/local/bin isn't in the default PATH. Using the following shebang works for me: #!/usr/bin/env -S PATH="/usr/local/bin:${PATH}" python3

matryer commented 3 years ago

@Raboo did that work for you?

matryer commented 3 years ago

Closing, hoping that helps. Please reopen if not.