Comment 2 for bug 1494057

Revision history for this message
Martin Pitt (pitti) wrote :

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'