I am trying to get the following shortcut to work:
notify-send -i rhythmbox "RhythmBox Is Playing" "$(rhythmbox-client --print-playing)"
It works fine If I run it from the command line, but when I set it as a keyboard shortcut I just get the text printed out and the program (rhythmbox-client
) doesn't run.
What am I doing wrong?
Try using the full paths
find your paths:
Then sub the results in instead of just the commands
notify-send -i /usr/bin/rhythmbox "RhythmBox Is Playing" "$(/usr/bin/rhythmbox-client --print-playing)"