The latest stable release of Spotify is now rolling out, but while it adds some slick new features it packs a miserable bug: no system tray icon.
Worse still, Spotify no longer has a Linux developer working on the client. There’s not even a rough guesstimate of when it, and other bugs, could be fixed.
The lack of tray icon makes managing the streaming music app a little tricky (you can’t ‘minimise to tray’, for example). MPRIS data is not (currently) being passed to the Ubuntu Sound Menu in the latest release either, which makes using playback controls even harder!
The Solution: A Unity Quicklist for Spotify
Enter a fantastic fix, direct from a Spotify rep: a custom Unity quicklist for Spotify.
No, it’s not a system tray icon but when used with the hidden minimise-on-click launcher option it’s almost as good.
How To Add a Spotify Unity Quicklist
The following article only applies to Spotify for Linux 1.0.23 and not the older 0.93 client (which still rocks a system tray icon).
To make a Unity quicklist for Spotify to control playback from the Unity launcher you will need to edit the spotify.desktop file in /usr/share/applications.
Keep in mind that a) this is a system file and b) the file may be overwritten by future updates. You may wish to bookmark this article should your quicklist be overwritten in the future.
To edit spotify.desktop you need to run the following command in a new Terminal window as root, entering your password when prompted:
sudo gedit /usr/share/applications/spotify.desktop
In the Gedit text editor window that appears you need to select ALL of the existing the text, delete it, and paste the following in its place:
[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;
That’s it; his save for your changes to take effect. Quit the Terminal.
Launch Spotify from the Unity Dash and right-click on its launcher icon to access your new quicklist:
- Install Linux Spotify Client 1.x (Stable) On Ubuntu Systems
- Spotify Client 1.x Goes Stable, How to Install it in Ubuntu
- Spotio Is A Light Skin for Spotify’s Desktop App — And Its Coming To Linux
- Install Miam Audio Player on Linux Ubuntu Systems
- How to Install Spotify Client in Ubuntu 15.10
- Spotify for Linux - In the friendzone
- Maru OS Brings Desktop Linux to Android Phones
- Vineyard – The Easy Way to Configure Wine on Ubuntu
- Spotify is testing a new layout for its desktop player
- Install Spotify with Light Theme ‘Spotio’ in Ubuntu 16.04