2

With the new Spotify update, the icon tray is gone does anyone know how to put it back? I know that elementary OS doesn't have a system tray icon, but I'm used to have the spotify icon on the top right corner.

2

1 Answer 1

7

It seems the new update has removed the old icon tray, more info here

Now I was used to use the icon tray to pause/play forward and rewind musics.

Based on one of the comments on the forum I was wable to create actions to the spotify icon on the dock.

First do open the spotify.desktop

sudo nano /usr/share/applications/spotify.desktop

Then at this at the end of the file

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

Bonus: If you want you can add some icons to your actions:

Icon=media-playback-start
Icon=media-skip-forward
Icon=media-skip-backward

So it will be something like this:

Actions=PlayOrPause;Next;Previous

[Desktop Action PlayOrPause]
Icon=media-playback-start
Name=Play or Pause
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
[Desktop Action Next]
Icon=media-skip-forward
Name=Next
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
[Desktop Action Previous]
Icon=media-skip-backward
Name=Previous
Exec=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous

result of actions

4
  • To take an actual screenshot, use the screenshot app with a timed delay, then open the right-click menu.
    – Lewis Goddard
    Commented Mar 3, 2016 at 18:37
  • @LewisGoddard How do you do that? Commented Mar 6, 2016 at 19:06
  • I don't understand what you're asking, how do I use the screenshot app? Just search in the applications menu.
    – Lewis Goddard
    Commented Mar 10, 2016 at 18:38
  • 2
    @LewisGoddard never mind after 2 years of using eOS I had never noticed the screenshot app. Changed to a proper screenshot Commented Mar 15, 2016 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.