Firefox + Spotify in Wine

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/

Enter the following:

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/

Now, click on a spotify link (like this one for instance) and select the newly created shell script to see the magic happen!

This entry was posted in Technology and tagged , , , . Bookmark the permalink.

5 Responses to Firefox + Spotify in Wine

  1. Mats Lindh says:

    I can confirm that this works just as it should! Awesome. \o/

  2. Espen S. Valseth says:

    Thanks.. This was very useful. It worked as intended right away.

  3. jansson99 says:

    Nothing happens when i’m klicking OK on the dialog that asks me if i want to use to run the file.

  4. Thanks for the tip! Works like a charm.

  5. ianpspringer says:

    If you are using the Linux version of Spotify and you have GNOME installed, you can use:

    gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command “/usr/bin/spotify -uri %s”
    gconftool-2 -t bool -s /desktop/gnome/url-handlers/spotify/needs_terminal false

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s