Thursday, May 27, 2010

Spotify links on firefox for Linux


So you like Spotify and being a Linux user you feel frustrated not being able to open the "spotify:" links on your firefox (> 3.6) browser, after going throught some non-effective solutions, here is the simplest one:

1. Configure firefox

Open the about:config dialog writing it on the address bar in a new tab.

Right-click > New > Boolean and enter :
network.protocol-handler.expose.spotify
then select :
false


2. Configure your system

Now create a new text file wherever you want on you computer, name it "spotify.sh" (or any other name you want, just make sure you remember it !).

Write that on it:



#!/bin/bash
wine "C:\Program Files\Spotify\spotify.exe" /uri "$1"





Save it, you are almost done.


3. Last step

Open a spotify link, like this one. A dialog box will appear:

Click on choose and choose the file you created previously, now, spotify should open with the desired playlist.


Enjoy !

Source: 1

Blogger templates

A cœur vaillant rien d'impossible.
Powered by Blogger.

Labels

About