terminator icon indicating copy to clipboard operation
terminator copied to clipboard

Double input to broadcasted group

Open mikeperalta1 opened this issue 2 years ago • 6 comments

Describe the bug When using multiple split panes and broadcasting to a group, the group members receive double the input sent from the selected pane. Screenshots attached below.

To Reproduce Steps to reproduce the behavior:

  1. Split the terminal to 2 or more panes
  2. Assign all panes to the same group
  3. Send keystrokes to one of the panes
  4. Observe that the other panes don't receive accurate keystroke broadcast from the selected pane, but in fact double

Expected behavior Each pane receiving keystrokes from the selected group member should only receive the correct input, rather than double.

Screenshots

image

image

Desktop (please complete the following information):

  • Ubuntu
  • 22.04 LTS (Jammy Jellyfish)
  • X11 and XFCE

Additional context

Using latest version of terminator: 2.1.1

Config file (changed file extension from none to .txt because this form wouldn't accept as-is): config.txt

mikeperalta1 avatar Jul 22 '22 11:07 mikeperalta1

Facing the same issue as described above. Version in use : 2.1.1-1

sayaleeraut avatar Aug 04 '22 07:08 sayaleeraut

It's so inconvenient.

pacientes avatar Aug 08 '22 09:08 pacientes

  1. open terminator by sudo user
sudo vim /usr/bin/terminator
  1. edit ibus environment
# as-is
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='1'   # edit here

# to-be
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='0'   # edit here

pacientes avatar Aug 11 '22 02:08 pacientes

  1. open terminator by sudo user
sudo vim /usr/bin/terminator
  1. edit ibus environment
# as-is
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='1'   # edit here

# to-be
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='0'   # edit here

This didn't fix the issue for me on 22.04.1 with GNOME 42.2.

anbaccar avatar Aug 11 '22 14:08 anbaccar

Also seeing this on Fedora 35 with Plasma 5.24.4 and terminator-2.1.1-3.fc35.noarch.rpm. Tried the suggested edit of /usr/bin/terminator, no change. Removed /home/$username/.config/terminator/config and restarted terminator, no change.

PenelopeFudd avatar Aug 12 '22 00:08 PenelopeFudd

  1. open terminator by sudo user
sudo vim /usr/bin/terminator
  1. edit ibus environment
# as-is
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='1'   # edit here

# to-be
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='0'   # edit here

This didn't fix the issue for me on 22.04.1 with GNOME 42.2.

It seems to be solved only in special cases.

My case is also 22.04.1 with GNOMW 42.4, but IBus keyboard input method system and using Korean keyboard layout. (English system language)

pacientes avatar Aug 12 '22 19:08 pacientes

should be fixed by #674

mattrose avatar Nov 29 '22 02:11 mattrose

#674 did not fix it for me. I built from HEAD (403bf540) and I still have the issue

  • debian 11.5
  • plasma 5.20

ehsjoar avatar Dec 02 '22 22:12 ehsjoar

Hi @mattrose , this is issue still occurs:

  • Terminal version 2.1.3-1 (installed from PPA)
  • Ubuntu 22.04.2 LTS
  • XDG_SESSION_TYPE="x11"
  • Gnome version 42.5

Let me know is there something else you need to know

Edit: ibus seems to cause this problem for me, so killing the process solved it sudo pkill ibus

MrIsak avatar Jun 30 '23 16:06 MrIsak

Yeah, this is a bug in ibus, and and terminator is not the only program affected

mattrose avatar Jun 30 '23 20:06 mattrose

  1. open terminator by sudo user
sudo vim /usr/bin/terminator
  1. edit ibus environment
# as-is
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='1'   # edit here

# to-be
    username = pwd.getpwuid(os.getuid()).pw_name
    ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username]
    ibus_running = len(ibus_running) > 0
    if ibus_running:
        os.environ['IBUS_DISABLE_SNOOPER']='0'   # edit here

This worked for me using GNOME Shell 3.36.9 on Ubuntu 20.04

lamnguyenx avatar Nov 10 '23 08:11 lamnguyenx

should be fixed by #674

Not fixed, issue is still here...

awsms avatar Apr 06 '24 14:04 awsms

This is not an issue with terminator, but a bug in ibus.

mattrose avatar Apr 06 '24 23:04 mattrose

For the next person that finds this via $search_engine that is having this problem and only has an en-us keyboard setup -- simply running ibus exit can solve the problem. ibus start will bring the problem back -- even on a running instance of terminator.

Since I have no knowledge or interest in ibus this is a satisfactory workaround for me.

MMI avatar Apr 17 '24 17:04 MMI