I run Ubuntu on all my workstations. I also run Spotify in Wine and use Firefox 3.0 as browser of choice. Until now I haven’t been able to click on the spotify:* links in Firefox and have it open them in Spotify. The following small changes made this possible:
Start Firefix and enter about:config in the address bar. Click past the warning that comes up, right click somewhere in the list of settings and click on new -> boolean. Create the following setting:
and set it to false.
Right click again to add another setting:
Set this to true.
Now, lets create a small shell script that Firefox can use to start Spotify. I chose to place it in the Spotify installation folder:
vim ~/.wine/drive_c/Program\ Files/Spotify/spotify.sh
Enter the following:
#!/bin/bash wine "$HOME/.wine/drive_c/Program Files/Spotify/spotify.exe" /uri "$1"
Then make the file executable with the following command:
chmod +x ~/.wine/drive_c/Program\ Files/Spotify/spotify.sh
Now, click on a spotify link (like this one for instance) and select the newly created shell script to see the magic happen!