terminator_vs_ubuntu_18.10_-_broadcast_issue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
terminator_vs_ubuntu_18.10_-_broadcast_issue [25.02.2019 09:50] – created Pascal Suterterminator_vs_ubuntu_18.10_-_broadcast_issue [28.12.2021 13:07] (current) – [the script:] Pascal Suter
Line 1: Line 1:
-====== terminator vs ubuntu 18.10 - broadcast issue ======+====== terminator vs ubuntu 18/20 - 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.  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. 
 ===== Problem ===== ===== Problem =====
 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.  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. 
 +===== Reason =====
 +somehow terminator seems to have issues when ibus is involved
 ===== Solution ===== ===== Solution =====
 +we need to make sure that terminator does not use ibus. this is done differently in ubuntu 18 and ubuntu 20: 
 +
 +==== ubuntu 18 (tested with 18.10 but should also work with 18.04) ====
 as pointed out in [[https://bugs.launchpad.net/terminator/+bug/1318542/comments/26|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.  as pointed out in [[https://bugs.launchpad.net/terminator/+bug/1318542/comments/26|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 easiest way to do this is to add bash alias overwriting the terminator command. If you only need to do this for one useryou can put it in the users ''~/.bash_aliases'' fileotherwise one could add file to ''/etc/profile.d/'' to do this for all users.  +==== ubuntu 20.04 ==== 
-  alias terminator='GTK_IM_MODULEsetsid terminator'+here we need to unset ''DBUS_SESSION_BUS_ADDRESS'' for terminator to work correctly 
 + 
 +==== the script: ==== 
 +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 wrapper script ''/usr/local/bin/terminator'' whith the following contents:  
 +<code bash /usr/local/bin/terminator
 +#!/bin/bash 
 +DBUS_SESSION_BUS_ADDRESS="" GTK_IM_MODULE="" /usr/bin/terminator 
 +</code> 
 +don't forget to make it executable :)  
 +  chmod 755 /usr/local/bin/terminator 
 + 
 +the reason why this is saved to ''/usr/local/bin'' isthat this directory is listed in the ''PATH'' variable before ''/usr/bin'' is listed where the actual terminator binary resideshence, when someone starts terminator wihtout providing 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.  
 + 
 +===== Ohter problems ===== 
 +==== split-screen shortcut ctrl+shift+e not working ==== 
 +if terminator works with ibus active, you can experience a strange behaviour when using the ctrl+shift+e shortcut to split screens: you will get an underlined "__e__" and the terminal behaves strange until you press escape. this is because this same shurtcut is used by ibus to write emojis. you can change the ibus shurtcut by running  
 +  ibus-setup 
 +then go to the emoji tab and either change or remove the shortcut
  
-you will need to log out of your current gnome session and log back in for this to take effect.  
  • terminator_vs_ubuntu_18.10_-_broadcast_issue.1551084650.txt.gz
  • Last modified: 25.02.2019 09:50
  • by Pascal Suter