Spotify has no icon on systray in Ubuntu 14.04

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 --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause OnlyShowIn=Unity;​ [Desktop Action Stop] Name=Stop Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop OnlyShowIn=Unity;​ [Desktop Action Next] Name=Next Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next OnlyShowIn=Unity;​ [Desktop Action Previous] Name=Previous Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous OnlyShowIn=Unity; 

Now you can control the selection with

enter image description here

+5
source share

Source: https://habr.com/ru/post/1244304/


All Articles