]> git.draconx.ca Git - fvwmconf.git/blobdiff - scripts/mpdmenu.pl
mpdmenu: Use a specialized script to send playid commands to MPD.
[fvwmconf.git] / scripts / mpdmenu.pl
index 0da4c7f1975fc1fa9b8093c62f2934cbdc786911..ca7d2be3f9603f10dfe23e0c7ffcdcb7591eb96e 100755 (executable)
@@ -104,7 +104,8 @@ if (defined $album) {
                $t_title  = sanitise($t_title, 0);
 
                my $cmd = sprintf "AddToMenu $menu \"%d\t%s - %s\""
-                                 ." Exec mpc playid %d",
+                                 ." Exec exec $FVWM/scripts/mpdexec.pl"
+                                 ." playid %d",
                                  $t_trackno, $t_artist, $t_title, $t_id;
 
                cmd($cmd);
@@ -248,7 +249,9 @@ if (defined $album) {
                $thumb =~ s/\n//sg;
                $thumb = "%$thumb%" if (-f $thumb);
 
-               cmd("AddToMenu $menu \"$thumb$t_artist - $t_title\" Exec mpc playid $t_id");
+               cmd("AddToMenu $menu \"$thumb$t_artist - $t_title\""
+                   ." Exec exec $FVWM/scripts/mpdexec.pl"
+                   ." playid $t_id");
        }
 } # end use locale workaround
 } else {