Spotify has been updated today and its icon has disappeared on systray on ubuntu 14.04. I used this icon to play and stop music.
I modified spotify.desktop and placed some recordings to control the music using my own spotify icon.
To edit the spotify.desktop file, you need to run the following command:
sudo gedit /usr/share/applications/spotify.desktop
And replace its contents as follows:
[Desktop Entry] Name=Spotify GenericName=Music Player Comment=Spotify streaming music client Icon=spotify-client Exec=spotify %U TryExec=spotify Terminal=false Type=Application Categories=Audio;Music;Player;AudioVideo; MimeType=x-scheme-handler/spotify Actions=PlayOrPause;Stop;Next;Previousβ [Desktop Action PlayOrPause] Name=Play or Pause Exec=dbus-send
Now you can control the selection with
enter image description here
user6008356
source share