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
Next revisionBoth sides next revision
terminator_vs_ubuntu_18.10_-_broadcast_issue [25.02.2019 09:50] – created Pascal Suterterminator_vs_ubuntu_18.10_-_broadcast_issue [25.02.2019 10:43] – [Solution] Pascal Suter
Line 6: Line 6:
 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 a bash alias overwriting the terminator commandIf you only need to do this for one user, you can put it in the users ''~/.bash_aliases'' file. otherwise one could add a file to ''/etc/profile.d/'' to do this for all users.  +the problem with the proposed alias is, that this only works if you start terminator through a bash shellhoweverif you click the launcher icon in gnome it is ignored.
-  alias terminator='GTK_IM_MODULE= setsid terminator'+
  
-you will need to log out of your current gnome session and log back in for this to take effect+my solution was to creat a wrapper script ''/usr/local/bin/terminator'' whith the following contents:  
 +<code bash /usr/local/bin/terminator> 
 +#!/bin/bash 
 +date>/tmp/test 
 +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'' 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.txt
  • Last modified: 28.12.2021 13:07
  • by Pascal Suter