Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Only pass positional args to spotify
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed Nov 28, 2013
1 parent 72f3e17 commit b8ade6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/spotify
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ class TelepathyHandler(Handler, CurrentSongHandler):


class SpotifyGnome(object):
def __init__(self, handlers=[]):
def __init__(self, handlers=[], args=[]):
pid = os.fork()

if pid == 0:
time.sleep(1)
print "Launching Spotify..."
args = [spotify_bin] + sys.argv[1:]
args.insert(0, spotify_bin)
print " ".join(args)
os.execv(spotify_bin, args)

Expand Down Expand Up @@ -331,4 +331,4 @@ if __name__ == "__main__":
except:
import gobject

SpotifyGnome(handlers)
SpotifyGnome(handlers, args)

0 comments on commit b8ade6f

Please sign in to comment.