This is the logic:
def ui_run_terminal(self, command): terminals = ['x-terminal-emulator', 'gnome-terminal', 'terminator', 'xfce4-terminal', 'xterm']
program = None for t in terminals: program = GLib.find_program_in_path(t) if program: break
if not command: # test mode return have_display and program is not None
subprocess.call([program, '-e', command])
I. e. does this somehow not work any more? terminator -x 'sleep 5'
This is the logic:
def ui_run_ terminal( self, command): emulator' , 'gnome-terminal', 'terminator',
'xfce4- terminal' , 'xterm']
terminals = ['x-terminal-
program = None program_ in_path( t)
break
for t in terminals:
program = GLib.find_
if program:
if not command:
# test mode
return have_display and program is not None
I. e. does this somehow not work any more? terminator -x 'sleep 5'