Opening a spotify link opens another window

Opening a spotify link opens another window




Operating System

Arch Linux - KDE Plasma 5.26
Spotify Snap -


My Question or Issue

When opening a shared link to a song or playlist. The desktop client will open another Spotify session instead of the currently open session. After a while, the second window will fail to open and show "Something went wrong".

Steps to reproduce
1) Open Spotify and copy the share link to any song.

2) Open a terminal and type `xdg-open` but dont press enter.

3) Now paste the URL from step 1 inside quotes, but replace `https://` with `spotify://` and run the command.
  *) Ex: `xdg-open "spotify://"`

1 Reply

I found a partial solution here:


The solution proposed there is to change the `spotify.desktop` file so that the exec line looks like

exec=dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri string:'%U'

You can probably find the desktop file in `/usr/share/applications/spotify.desktop`, but if you installed with a snap, it may be somewhere else.

But this is only a partial solution:

- opening links now works if Spotify is already running

- you can't start Spotify with the desktop file anymore. However, this is not so bad, because you can simply run `spotify` in the command line to start it.


Suggested posts