krisajenkins / helm-spotify

A simple Spotify-for-Emacs interface.
MIT License
180 stars 21 forks source link

dbus command not working under Debian/Jessie #10

Open tgrigera opened 9 years ago

tgrigera commented 9 years ago

Everything is working great except the final launch of the spotify player! I tracked the issue down to the dbus command. It doesn't work for me (Debian Jessie), but no idea why (I really don't understand dbus). I changed it to

(defmulti-method spotify-play-href 'gnu/linux
  (href)
  (shell-command (format "qdbus org.mpris.MediaPlayer2.spotify / org.freedesktop.MediaPlayer2.OpenUri \"string:%s\""
             href)))

And this works in my system. I don't know if there is something missing or wrong in my setup, or there has been some change in dbus. The command used in the helm-spotify source seems more general, but for me it fails with Unknown type "spotify" (when I try it from the shell).