def execute_command(self, command): print("Running command '{}'".format(command)) thread = exec_in_thread(command) try: GLib.MainLoop().run() except KeyboardInterrupt: thread.stop()
def execute_command(command): """ Execute an arbitrary command in a Lutris context with the runtime enabled and monitored by LutrisThread """ logger.info("Running command '%s'", command) thread = exec_in_thread(command) try: GLib.MainLoop().run() except KeyboardInterrupt: thread.stop()
def execute_command(self, command): """ Execute an arbitrary command in a Lutris context with the runtime enabled and monitored by LutrisThread """ logger.info("Running command '{}'".format(command)) thread = exec_in_thread(command) try: GLib.MainLoop().run() except KeyboardInterrupt: thread.stop()