From 6738199e0fa27618207f9095eecc1e3208e09fc3 Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Wed, 3 Jun 2020 14:44:19 -0400 Subject: [PATCH] fix detection of whether or not ibus is running --- terminator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminator b/terminator index c824b19f..449a2f3a 100755 --- a/terminator +++ b/terminator @@ -57,7 +57,7 @@ if __name__ == '__main__': # Environment also needs IBUS_DISABLE_SNOOPER=1, or double chars appear # in the receivers. username = pwd.getpwuid(os.getuid()).pw_name - ibus_running = [p for p in psutil.process_iter() if p.name == 'ibus-daemon' and p.username == username] + ibus_running = [p for p in psutil.process_iter() if p.name() == 'ibus-daemon' and p.username() == username] ibus_running = len(ibus_running) > 0 if ibus_running: os.environ['IBUS_DISABLE_SNOOPER']='1'