Bitbar: Script not running

Created on 25 Sep 2019  路  4Comments  路  Source: matryer/bitbar

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

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", 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

All 4 comments

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
?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

makbol picture makbol  路  4Comments

JayBrown picture JayBrown  路  9Comments

ElRochito picture ElRochito  路  10Comments

javray picture javray  路  11Comments

jakeoid picture jakeoid  路  3Comments