Example #1
0
    def prompt(self, args=None):
        # run shell instead of printing prompt and close window on shell exit
        execConsole()
        self.close()

        # suppress the prompt
        return None
Example #2
0
    def prompt(self, args=None):
        # run shell instead of printing prompt and close window on shell exit
        execConsole()
        self.close()

        # suppress the prompt
        return None
Example #3
0
 def run_shell(self):
     """Launch a shell."""
     if os.path.exists("/bin/bash"):
         util.execConsole()
     else:
         # TODO: FIXME -> move to UI (check via module api?)
         print(_("Unable to find /bin/bash to execute!  Not starting shell."))
         time.sleep(5)