Why is Terminator sending double characters to terminals that aren't selected in broadcast mode?

I'm installing 3 servers in parallel, and am using Terminator with a 3-way split pane to do so.

Any time I go to the context menu in Terminator, and I use the broadcast feature to select "broadcast all", my keypresses will be broadcast to the SSH sessions in all 3 panes, though in the 2 panes I did not select as my "active pane" double the characters will be typed, so, as an example:

------------------------
jln@server1: apt upgrade -y
------------------------
jln@server2: aapptt uuppggrraaddee --yy
------------------------
jln@server3: aapptt uuppggrraaddee --yy
------------------------

I'm on 19.10 Eoan Ermine. Used the Terminator package from the official Ubuntu repository. I have changed no options other than the colours and the showing of the bars at the top of the terminals.

My terminator version:

terminator -v
terminator 1.91

4 Answers

From the bug report at :

It is the "GTK_IM_MODULE" environment variable (in my system it is GTK_IM_MODULE=ibus)

If I usent GTK_IM_MODULE, terminator works without the bug

env --unset=GTK_IM_MODULE terminator

Unsetting the GTK_IM_MODULE environment variable worked for me.

Change line 142 of the terminator script file to the following.

sudo nano /usr/share/terminator/terminator

before change (line 142)

ibus_running = [p for p in psutil.process_iter() if p.name == 'ibus-daemon' and p.username == username]

after change

ibus_running = [p for p in psutil.process_iter(['name', 'username']) if p.info['name'] == 'ibus-daemon' and p.info['username'] == username]
2

if you have ubuntu 20...

sudo nano /usr/bin/terminator

add after the imports...

del os.environ['DBUS_SESSION_BUS_ADDRESS']

Found somewhere and it worked for me...

sudo mv /usr/bin/terminator /usr/bin/terminator.SAVE
cat <<TERMINATOR > /tmp/terminator
#!/bin/bash
sh -c "DBUS_SESSION_BUS_ADDRESS='' /usr/share/terminator/terminator"
TERMINATOR
chmod 755 /tmp/terminator
sudo mv /tmp/terminator /usr/bin
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like