def check_for_new_games(self):
self.goglib_new_games_list = []
self.goglib_updated_games_list = []
command = ['lgogdownloader', '--exclude', '1,2,4,8,16,32','--list']
pid, stdin, stdout, stderr = GLib.spawn_async(
command,
flags=GLib.SpawnFlags.SEARCH_PATH|GLib.SpawnFlags.DO_NOT_REAP_CHILD,
standard_output=True,
standard_error=True
)
io = GLib.IOChannel(stdout)
self.source_id_out = io.add_watch(
GLib.IO_IN|GLib.IO_HUP,
self.watch_process,
'check_for_new_games',
priority=GLib.PRIORITY_HIGH
)
评论列表
文章目录