Custom script doesn't work when run as service #523
Unanswered
TaylorFinklea
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sounds like a PATH issue. The PATH available to sketchybar when run as a service is severely limited. Try using absolute paths to binaries you might have installed somewhere „uncommon“. You can check the logs of the sketchybar service in /opt/homebrew/var/log/sketchybar which should reveal the exact reason why the script fails. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm stumped and hoping to figure out what I'm doing wrong. I have a custom weather script that I've written, it works great when I run
sketchybar
as my own user. If I use a service either through nix or usingbrew services start sketchybar
, the script does not work. Everything is self contained in the script, it does API calls but all secrets are saved in the script, so it should not be relying on env vars. Any ideas of what might be wrong? I've attached screenshots.My config
plugins/weather.sh
items/weather.sh
Running the script directly
Running as a service
Beta Was this translation helpful? Give feedback.
All reactions