Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double input to broadcasted group #623

Closed
mikeperalta1 opened this issue Jul 22, 2022 · 14 comments
Closed

Double input to broadcasted group #623

mikeperalta1 opened this issue Jul 22, 2022 · 14 comments

Comments

@mikeperalta1
Copy link

mikeperalta1 commented Jul 22, 2022

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

@sayaleeraut
Copy link

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

@pacientes
Copy link

It's so inconvenient.

@pacientes
Copy link

  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

@anbaccar
Copy link

  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.

@PenelopeFudd
Copy link

PenelopeFudd commented Aug 12, 2022

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.

@pacientes
Copy link

  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)

@mattrose
Copy link
Member

should be fixed by #674

@ehsjoar
Copy link

ehsjoar commented Dec 2, 2022

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

  • debian 11.5
  • plasma 5.20

@MrIsak
Copy link

MrIsak commented Jun 30, 2023

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

@mattrose
Copy link
Member

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

@lamnguyenx
Copy link

lamnguyenx commented Nov 10, 2023

  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

@awsms
Copy link

awsms commented Apr 6, 2024

should be fixed by #674

Not fixed, issue is still here...

@mattrose
Copy link
Member

mattrose commented Apr 6, 2024

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

@MMI
Copy link

MMI commented Apr 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests