I have a line in my plugin:
Refresh | bash="python3 /Users/zeev/iCloud/bitbar/mint/mint-getData.py" terminal=false refresh=true
which does NOT run when clicked.
It only runs if I set terminal=true
I also tried putting that same command in its own .sh file:
Refresh | bash="/Users/zeev/.../mint-getData.sh" refresh=true
which also did not work
And I tried
Refresh | bash='/usr/local/bin/python3' param1='/Users/zeev/.../mint-getData.py' refresh=true
also didn't work
What am I missing?
I am too busy to help right now, but please read the docs and consult other examples.
https://github.com/matryer/bitbar-plugins/search?l=Python&q=terminal%3Dfalse
I was facing a similar problem this same problem, but just using open: echo "Spotify|bash=open param1=/Applications/spotify.app terminal=false", where terminal=true works
This is the technique I borrowed from the other plugins I was seeing:
if [[ "$1" = "open" ]]; then
open /Applications/Spotify.app
fi
...
echo "Spotify|bash=$0 param1=open terminal=false"
It's not ideal though, and I couldn't see any documentation for this
I've tried 5 different examples, e.g., showhide-files.1d.py 鈥撀爓hich does not work. It just opens a Terminal window.
Thoroughly confused.
Can someone just tell me what is wrong with:
Refresh | bash='/usr/local/bin/python3' param1='/Users/.../mint-getData.py' refresh=true
?
Most helpful comment
I was facing a similar problem this same problem, but just using
open:echo "Spotify|bash=open param1=/Applications/spotify.app terminal=false", whereterminal=trueworksThis is the technique I borrowed from the other plugins I was seeing:
It's not ideal though, and I couldn't see any documentation for this