Skip to content

Instantly share code, notes, and snippets.

@oyvindio
Created February 19, 2010 07:30
Show Gist options
  • Save oyvindio/308524 to your computer and use it in GitHub Desktop.
Save oyvindio/308524 to your computer and use it in GitHub Desktop.
How to make Spotify links work in GNOME.
gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command "<path to spotify wrapper script> %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
#!/bin/sh
# Opens a Spotify URI passed as arg, or starts Spotify if executed without args
SPOTIFY_PATH="$HOME/.wine/drive_c/Program Files/Spotify/spotify.exe"
if [ "$#" -eq 1 ]; then
wine "$SPOTIFY_PATH" /uri "$1"
else
wine "$SPOTIFY_PATH"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment