Spotify & Browsers

Note: This assumes you have installed Spotify via Wine.

Shell Script

# cat ~/bin/browser2spotify
#!/bin/sh
exec wine "C:\Program Files\Spotify\spotify.exe" /uri "$@"

Open From Browser (Gnome)

# 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.

References

 
spotify.txt · Last modified: 2010/07/17 15:44 by volker
[unknown button type]
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki