If you got spotify installed under wine in Linux it may annoy you that you can’t open spotify url’s from just any application. The howto spotify provides works for firefox but not for chrome or pidgin etc etc.
So here is how to make all your apps (at least in gnome) open spotify url’s.
First of all create the browser2spotify script that’s going to be called when you click on a spotify link, don’t forget to make it executable!
echo ‘#!/bin/sh’ > ~/.browser2spotify
echo ‘exec wine “C:\Program Files\Spotify\spotify.exe” /uri “$@”‘ >> ~/.browser2spotify
chmod 755 ~/.browser2spotify
Now let’s associate spotify URL with the open script by editing gconf. Change USERNAME for your account login name
gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command “/home/USERNAME/.browser2spotify”
gconftool-2 -s /desktop/gnome/url-handlers/spotify/needs_terminal false -t bool
gconftool-2 -s /desktop/gnome/url-handlers/spotify/enabled true -t bool
You should now be set and ready to roll.



