apport doesn't work to run a gdb session when run with another terminal

Bug #1494057 reported by Nicolas Devillers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Undecided
Unassigned

Bug Description

After a crash, when asking apport to run a gdb session, GDB session doesn't run if the defaut gnome terminal is "terminator".

Revision history for this message
Nicolas Devillers (nicolas-devillers) wrote :

Workaround was to set again defaut terminal as gnome-terminal using: "sudo update-alternatives --config x-terminal-emulator"
This could be a bug from terminator as I didn't dig yet into how a apport run the gdb command and what difference it make compared to running it within gnome-terminal.

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'

Changed in apport:
status: New → Incomplete
Revision history for this message
Nicolas Devillers (nicolas-devillers) wrote :

terminator -x 'sleep 5' open up a terminator windows displaying error message "unable to find a shell"

Could be because my defaut shell is zsh instead of bash ? It works correctly if I run

- "terminator -x /bin/bash"
- "terminator -x "/bin/zsh"
- "terminator -e 'sleep 5'

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Apport because there has been no activity for 60 days.]

Changed in apport:
status: Incomplete → Expired
Martin Pitt (pitti)
Changed in apport:
status: Expired → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.