Skip to content

Commit

Permalink
Fix URI opening functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpdaemon committed Oct 20, 2012
1 parent a05ffa4 commit f237029
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spotify-dbus.py
Expand Up @@ -217,7 +217,7 @@ def action_trigger(self, action, param = False):
print "Opening " + param + "..."

window = self.get_window()
window.openLink(param)
window._openLink(param)

# Action listener
def action_listener(self, id = 0, action = ''):
Expand Down Expand Up @@ -595,6 +595,10 @@ def __init__(self):
except KeyboardInterrupt:
print 'Stopping daemon...'

# Open URI
elif sys.argv[1][0:8] == 'spotify:':
self.action_trigger('uri', sys.argv[1])

# Info
elif '--info' in sys.argv or 'info' in sys.argv:
self.action_trigger('info')
Expand Down Expand Up @@ -639,10 +643,6 @@ def __init__(self):
else:
self.hide_window()

# Open URI
elif sys.argv[1][0:8] == 'spotify:':
self.action_trigger('uri', sys.argv[1])

# Other parameters, error
else:
if self.debug == True:
Expand Down

0 comments on commit f237029

Please sign in to comment.