Diff
Differences From Artifact [df69d27d62]:
- Executable file st2.py — part of check-in [a6f5f66365] at 2015-04-05 14:09:31 on branch trunk — Update window title for currently selected category tab. (user: mario, size: 21459) [annotate] [blame] [check-ins using]
To Artifact [a62db5a28b]:
- Executable file st2.py — part of check-in [08b1306823] at 2015-04-05 22:04:31 on branch trunk — Provide a `-D` debugging flag and a `-d shoutcast` option to disable plugins prior startup. (user: mario, size: 21787) [annotate] [blame] [check-ins using]
| ︙ | |||
486 487 488 489 490 491 492 493 494 495 496 497 498 499 | 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 | + + + + + + + + + + + |
# startup procedure
def main():
# process a few command line flags (needs a rewrite)
argv = sys.argv[1:]
while len(argv) and argv[0] in ("-d", "-D"):
opt = argv.pop(0)
if opt == "-D":
conf.debug = 1
elif opt == "-d":
conf.plugins[argv.pop(0)] = 0
sys.argv.pop(1)
sys.argv.pop(1)
# graphical
if len(sys.argv) < 2 or "--gtk3" in sys.argv:
# prepare for threading in Gtk+ callbacks
gobject.threads_init()
|
| ︙ |