Exemple #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()
Exemple #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()
Exemple #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()
Exemple #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()