matryer / xbar

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

Tips for troubleshooting failing plugin scripts than run great outside of xbar #861

Closed bede closed 1 year ago

bede commented 1 year ago

Feel free to close if inappropriate since this is a support request rather than a bug report!

I've made a Python package for polling a popular CO2/temp/pressure/humidity monitor that runs great in Terminal but errors out when run via xbar. I've tried freezing it into a static PyInstaller executable with exactly the same outcome. The script outputs a single number to stdout.

The error is shown below. Does anyone have any tips for troubleshooting?

Screenshot 2022-11-02 at 10 10 41
bede commented 1 year ago

Ok, I needed to add xbar to the bluetooth panel in sys prefs. Case closed!