Skip to content

Instantly share code, notes, and snippets.

@oyvindio
Created December 26, 2009 18:12
Show Gist options
  • Save oyvindio/263999 to your computer and use it in GitHub Desktop.
Save oyvindio/263999 to your computer and use it in GitHub Desktop.
Wrapper script for starting Spotify when run through wine.
#!/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