Spotify under Wine in Linux - Can't open spotify links in Firefox

Fix for: 'Firefox doesn't know how to open this address, because the protocol (spotify) isn't associated with any program.' In the Spotify instructions (here) it says:
Opening spotify URIs from browsers
 
This has been tested and works with Firefox (Iceweasel), Epiphany and Opera 9.5.
 
To be abe to open spotify URIs you first need a simple script:
 
echo '#!/bin/sh' > ~/.browser2spotify
echo 'exec wine "C:\Program Files\Spotify\spotify.exe" /uri "$@"' >> ~/.browser2spotify
chmod 755 ~/.browser2spotify
 
(Change the path to the spotify executable if necessary)
Firefox/Epiphany
 
In Epiphany enter the following in the URI field:
 
about:config
 
Right click and select New > Boolean and name it network.protocol-handler.external.spotify and set it to True
 
Right click and select New > String and name it network.protocol-handler.app.spotify and set the name to ~/.browser2spotify
You also need to add boolean:
network.protocol-handler.expose.spotify
with type false. This worked for me. The fix is from grus comment here. Thank you grus!
No votes yet

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

excelent bro, now it works

excelent bro, now it works

Post new comment

The content of this field is kept private and will not be shown publicly.