Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Opening a spotify link opens another window

Opening a spotify link opens another window

Premium

US

 

Operating System

Arch Linux - KDE Plasma 5.26
Spotify Snap - 1.1.84.716.gc5f8b819

 

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://open.spotify.com/track/4sAn9xKA6VlpXHdpNtsyHl"`

image.png
Reply
1 Reply

I found a partial solution here: https://community.spotify.com/t5/Desktop-Linux/quot-Open-in-desktop-app-quot-not-working/m-p/5354585...

 

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