ncmpcpp: Fix desktop notifications

Now they work even if they start with - (and are not interpteted as an
option to notify-send).
This commit is contained in:
Simon Bruder 2020-08-28 23:12:38 +02:00
parent 5ca0c1147f
commit eb7005f200
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -20,4 +20,4 @@ seek_time = 5
user_interface = alternative
# Desktop notification on song change
execute_on_song_change = notify-send -t 5000 "Now Playing" "$(mpc --format '%title% \n%artist% %album%' current)" -i "$(dirname $HOME/Music/"$(mpc --format %file% current)")/cover.jpg"
execute_on_song_change = notify-send -t 5000 -i "$(dirname $HOME/Music/"$(mpc --format %file% current)")/cover.jpg" "Now Playing" -- "$(mpc --format '%title% \n%artist% %album%' current)"