Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Gnome Terminal needs nasty hack #8

@hedgeberg

Description

@hedgeberg

Gnome Terminal recently deprecated the -c option, opting instead for syntax of the style:

gnome-terminal -- /usr/bin/gdb ./target_binary 

to get around this, I had to make the following hack in utils/misc.py:

First, right below "if not terminal: ..." add:

if("gnome-terminal" in terminal):
    command = command.split(' ')

Then, change

argv = [terminal_path] + args + [command]

to

if("gnome-terminal" in terminal):
    argv = [terminal_path] + args + command
else:
    argv = [terminal_path] + args + [command]

Works, and should still support any other terminals. I am unsure if there are other terminals that might use the "-- [passed command line]" but I have a feeling there are, and it would be potentially worth it to add support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions