Skip to content

Commit

Permalink
Merge pull request #5 from ThomasAdam/ta/add-song-status
Browse files Browse the repository at this point in the history
Add command-line option "-s" to display summary
  • Loading branch information
fmoralesc committed Aug 29, 2011
2 parents 50a673e + c99405a commit d289f6a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions indimpc.py
Expand Up @@ -447,9 +447,14 @@ def launch_player(self, *args):
self.notify()

if __name__ == "__main__":
if "-p" in sys.argv:
IndiMPCPreferencesDialog()
else:
indimpc = IndiMPDClient()
gtk.quit_add(0, indimpc.close)
for args in sys.argv:
if args == "-p":
IndiMPCPreferencesDialog()
elif args == "-s":
indimpc = IndiMPDClient()
indimpc.status_loop()
sys.exit()

indimpc = IndiMPDClient()
gtk.quit_add(0, indimpc.close)
gtk.main()

0 comments on commit d289f6a

Please sign in to comment.