Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable media keys actions #23
Eh, sorry, left the office already.
OS: Ubuntu 12.04 32 bit
Spotify package version: 1:0.9.4.183.g644e24e.428-1
-------- Original message --------
What version of Spotify, and on what desktop environment and version?
Hmm, I'm running 0.9.4.183 on my own machine as well, but I'm running Gnome/Gnome Shell 3.10 on Arch linux, and I can't replicate the problem. I would likely suspect that either spotify-gnome is somehow executing twice, or that Ubuntu's Unity shell has added support for sending MPRIS media key signals. As a workaround, you could remove "MediaKeysHandler" from line 303 in the script so that it only handles notifications and Telepathy.
FWIW, I added the --no-keys argument in f767c4a, and at the same time I was able to replicate the ability of Spotify to respond to Gnome's media keys without spotify-gnome running. However, I suspect the reason that I don't suffer from the originally-reported issue is due to a difference in the way Gnome handles these dbus events compared to Unity; spotify-gnome should be catching the dbus events and preventing them from propogating further, but perhaps Unity sends them in such a way that the propogation continues on to Spotify as well.
In any case, now that Spotify supports the media keys directly, --no-keys should provide a temporary fix. I will probably drop the media key support altogether in a month or so once the latest version of Spotify has had a better chance to proliferate. I'll reopen this task until that has been completed.
referenced this issue
Nov 13, 2013
Spotify registers correctly to gnome settings daemon using
There is a fork of mkd (https://github.com/nandhp/mediakeys-daemon) which handles it in the gnome way - so indeed only the last app gets the keys. Sry for the mistake.
But then the gnome-spotify should check the first parameter (application name) to be "Spotify". For example the use case: start spotify, start totem, play on totem, press pause button -> should pause totem and not start spotify as well. The first parameter of the
Another use case that fails is: open spotify, open totem, go back to spotify and press play. Now Spotify should be the last application and should get the key press. But the wrapper doesn't call GrabMediaPlayerKeys again. I use for this: