Skip to content

Double input to broadcasted group #623

Closed

Description

@mikeperalta1

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

Activity

  1. sayaleeraut commented on Aug 4, 2022

    @sayaleeraut

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

  2. pacientes commented on Aug 8, 2022

    @pacientes

    It's so inconvenient.

  3. pacientes commented on Aug 11, 2022

    @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
  4. abaccarini commented on Aug 11, 2022

    @abaccarini
    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.

  5. PenelopeFudd commented on Aug 12, 2022

    @PenelopeFudd

    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.

  6. pacientes commented on Aug 12, 2022

    @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.

    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)

  7. mattrose commented on Nov 29, 2022

    @mattrose
    Member

    should be fixed by #674

  8. ehsjoar commented on Dec 2, 2022

    @ehsjoar

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

    • debian 11.5
    • plasma 5.20
  9. MrIsak commented on Jun 30, 2023

    @MrIsak

    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

  10. mattrose commented on Jun 30, 2023

    @mattrose
    Member

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

  11. lamnguyenx commented on Nov 10, 2023

    @lamnguyenx
    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

  12. awsms commented on Apr 6, 2024

    @awsms

    should be fixed by #674

    Not fixed, issue is still here...

  13. mattrose commented on Apr 6, 2024

    @mattrose
    Member

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

  14. MMI commented on Apr 17, 2024

    @MMI

    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.

  15. mauricio-sousa commented on Aug 22, 2024

    @mauricio-sousa

    I have tested a workaround:

    1. Edit the file /usr/share/applications/terminator.desktop.
    2. Change the Exec line to:
      Exec=sh -c "GTK_IM_MODULE= setsid terminator"
  16. steve-todorov commented on Sep 5, 2024

    @steve-todorov

    @mattrose it took me a while to read through all of the duplicating tickets of this problem and the "possible solutions" -- most of which did not work. The only one that actually work was what @MMI suggests - ibus exit. A lot of wasted time. Is this bug reported to ibus ? If not -- maybe you should open one and we can make some noise there so this can get resolved permanently?

  17. mattrose commented on Sep 6, 2024

    @mattrose
    Member

    This bug is not necessarily in ibus itself, but in some of the language plugins. It has been reported multiple times

  18. Sispheor commented on Nov 4, 2024

    @Sispheor

    Still present with terminator 2.1.4 🙃

  19. rm-minus-r-star commented on Jan 11, 2025

    @rm-minus-r-star

    ibus exit worked for me, though I had to also manually turn "broadcast off" from the menu. I didn't have broadcast on in the first place, that seems to have come along with the bug. ibus exit only turned off the duplication in other group shells.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions