Note: This assumes you have installed Spotify via Wine.
# cat ~/bin/browser2spotify
#!/bin/sh exec wine "C:\Program Files\Spotify\spotify.exe" /uri "$@"
# gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command "/home/$USERNAME/bin/browser2spotify %s" # 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
Now, you can launch spotify:: links from within any browser that calls xdg-open to open external links.