terminator_vs_ubuntu_18.10_-_broadcast_issue

This is an old revision of the document!


terminator vs ubuntu 18.10 - broadcast issue

terminator is a very good graphical terminal emulator for linux. Its main advantage is that it allows to split the screen into several terminal windows and add tabs with additional split screens. On top of that, on can broadcast from one terminal to others.

There is an issue with broadcasting in ubuntu 18.10 with its standard desktop environment. every key that is pressed in the sending terminal is written twice in the receiving ones.

as pointed out in a comment on a but report related to this issue, one can unset the GTK_IM_MODULE environment variable prior to starting terminator which will work around the problem.

the problem with the proposed alias is, that this only works if you start terminator through a bash shell. however, if you click the launcher icon in gnome it is ignored.

my solution was to creat a wrapper script /usr/local/bin/terminator whith the following contents:

/usr/local/bin/terminator
#!/bin/bash
date>/tmp/test
GTK_IM_MODULE= /usr/bin/terminator

the reason why this is saved to /usr/local/bin is, that this directory is listed in the PATH variable before /usr/bin is listed where the actual terminator binary resides. hence, when someone starts terminator wihtout providing a full path, our wrapper script will be launched first.

you can see in /usr/share/applications/terminator.desktop that the gnome launcher does not call terminator by its full path but rather by the executable name, so our hack will work.

we could have also renamed the actual binary and then saved the wrapper in its place, or we could have modified the launcher file, but both of these solutions will probably brake on each update of terminator, while our little hack, although not pretty, will survive updates as well.

  • terminator_vs_ubuntu_18.10_-_broadcast_issue.1551087792.txt.gz
  • Last modified: 25.02.2019 10:43
  • by Pascal Suter