Esempio n. 1
0
 def execute_command(self, command):
     print("Running command '{}'".format(command))
     thread = exec_in_thread(command)
     try:
         GLib.MainLoop().run()
     except KeyboardInterrupt:
         thread.stop()
Esempio n. 2
0
 def execute_command(self, command):
     print("Running command '{}'".format(command))
     thread = exec_in_thread(command)
     try:
         GLib.MainLoop().run()
     except KeyboardInterrupt:
         thread.stop()
Esempio n. 3
0
 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()
Esempio n. 4
0
 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()