Spotify在Ubuntu 14.04的systray上没有图标

Spotify在Ubuntu 14.04的systray上没有图标,ubuntu,icons,ubuntu-14.04,spotify,Ubuntu,Icons,Ubuntu 14.04,Spotify,今天Spotify被更新了,它的图标在ubuntu 14.04的systray上消失了。我曾经用这个图标来播放和停止音乐 我修改了spotify.desktop,并使用自己的spotify图标添加了一些条目来控制音乐 要编辑spotify.desktop,需要运行以下命令: sudo gedit /usr/share/applications/spotify.desktop 并将其内容替换为: [Desktop Entry] Name=Spotify GenericName=Music Pla

今天Spotify被更新了,它的图标在ubuntu 14.04的systray上消失了。我曾经用这个图标来播放和停止音乐

我修改了spotify.desktop,并使用自己的spotify图标添加了一些条目来控制音乐

要编辑spotify.desktop,需要运行以下命令:

sudo gedit /usr/share/applications/spotify.desktop
并将其内容替换为:

[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;
现在,您可以使用


我投票决定将此问题作为离题题题结束,因为它属于askubuntuDo。您知道如何再次显示“脱机模式”复选框/选项吗?甚至在菜单上?谢谢。我尝试使用此解决方案,但修改后无法启动Spotify。。