diff --git a/terminator b/terminator index 3bb9294b..150fca0e 100755 --- a/terminator +++ b/terminator @@ -56,12 +56,8 @@ from terminatorlib.configjson import ConfigJson # Deleting env variable fixes double char problem when broadcasting (#78) # Only delete if it exists, or exception occurs -try: +if os.environ.get('GTK_IM_MODULE') is not None: 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