Created
February 19, 2010 07:30
-
-
Save oyvindio/308524 to your computer and use it in GitHub Desktop.
How to make Spotify links work in GNOME.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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