diff --git a/terminator b/terminator index d459a9ed..3bb9294b 100755 --- a/terminator +++ b/terminator @@ -53,6 +53,16 @@ from terminatorlib.util import dbg, err from terminatorlib.layoutlauncher import LayoutLauncher from terminatorlib.configjson import ConfigJson + +# Deleting env variable fixes double char problem when broadcasting (#78) +# Only delete if it exists, or exception occurs +try: + del os.environ['GTK_IM_MODULE'] +except Exception as e: + # Only exception is a key error, which states that env var does not exists + # So, it is okay to pass + pass + if __name__ == '__main__': # Workaround for IBus intefering with broadcast when using dead keys # Environment also needs IBUS_DISABLE_SNOOPER=1, or double chars appear