Skip to content

Input Remapper GUI cannot apply a preset if it was previously launched from a terminal #1204

@Kzer-Za

Description

@Kzer-Za

If you launch input-remapper-gtk from a virtual terminal, then exit it, and then later close that terminal window or tab, then if you later open Input Remapper GUI again, it can't apply a preset.

Steps:

  1. Run input-remapper-gtk from any virtual terminal window (tested on tilda, xfce-terminal, and urxvt).
  2. Apply, then stop any preset.
  3. Exit the Input Remapper GUI, then close the terminal window.
  4. Open the GUI again, in any way: whether by running input-remapper-gtk from a terminal, or by launching the desktop file.
  5. Try to apply a preset.

The expected result:
The preset should be applied.

The actual result:
Nothing happens

ps finds these two leftover processes:

root       10537  0.1  0.1 296624 48264 ?        Sl   08:02   0:00 python3 /usr/sbin/input-remapper-service --hide-info
root       10538  0.0  0.1  66964 32744 ?        S    08:02   0:00 python3 /usr/sbin/input-remapper-service --hide-info

I would guess they are expecting the GUI to be owned by the same terminal from which it was launched the first time.

Naturally, running sudo pkill -f input-remapper && input-remapper-gtk -d, removes the issue, but only for the current Input Remapper GUI window. If you close that window and the terminal from which the command was run, any subsequent Input Remapper GUI windows has the same problem.

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