-
I have a plugin I am writing and it works great when I run sketchybar from command line:
But its not displaying the content when I run as a brew service:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think I figured it out... I'm guessing the service doesn't have access to environment variables... With that in mind, any suggestions on how to store stuff like API Keys when you plan to store your config in git? |
Beta Was this translation helpful? Give feedback.
-
Something very simple would be to store it in a file (e.g. define it as a variable in a .sh file) and add this file to .gitignore, then source the file and the variable will be accessible in your scripts. the sketchybar service is a clean environment with only the most important env variables set e.g. Maybe I will add something to sketchybar when run from the commandline to drop the current session environment variables per default. |
Beta Was this translation helpful? Give feedback.
-
(I needed them for a different problem, 'it's a different environment, put it in a file' is an 'XY answer' as it were, didn't help me.) |
Beta Was this translation helpful? Give feedback.
I think I figured it out... I'm guessing the service doesn't have access to environment variables...
With that in mind, any suggestions on how to store stuff like API Keys when you plan to store your config in git?