def run(self, args):
# show window as early as possible
self.window_main.show_all()
# delay cache open
GObject.timeout_add(1, self.cache.open)
# support both "pkg1 pkg" and "pkg1,pkg2" (and pkg1,pkg2 pkg3)
if args:
for (i, arg) in enumerate(args[:]):
if "," in arg:
args.extend(arg.split(","))
del args[i]
# FIXME: make this more predictable and less random
# show args when the app is ready
self.show_available_packages(args)
atexit.register(self.save_state)
评论列表
文章目录