Malabarba / control-pianobar

Pair of scripts that interact with pianobar entirely through notification bubbles and hotkeys. No terminal necessary.
http://malabarba.github.io/control-pianobar/
35 stars 13 forks source link

missing albumart line 136: #9

Open danielpflood opened 6 years ago

danielpflood commented 6 years ago

136: cd "$fold/albumart"

/Users/danielpflood/.config/pianobar/pianobar-notify.sh: line 136: cd: /Users/danielpflood/.config/pianobar/albumart: No such file or directory /Users/danielpflood/.config/pianobar/control-pianobar.sh: line 186: pidof: command not found

I corrected the pidof of by installing with brew but the album art is currently being downloaded to my desktop.

Malabarba commented 6 years ago

That's odd. It's pianobar that downloads the album art (not control-pianobar). Maybe pianobar changed the download location recently, or maybe that's just how it works on MacOS (I've never tested the script on a Mac).

ijustlovemath commented 6 years ago

I believe pidof is a Linux specific utility/bash builtin. Perhaps you could use something like pgrep or ps | grep [p]ianobar for a more portable solution.