Skip to content

Commit

Permalink
Merge pull request #114 from gnome-terminator/issue78
Browse files Browse the repository at this point in the history
fix detection of whether or not ibus is running
  • Loading branch information
mattrose authored Jun 11, 2020
2 parents 7e70a5b + 6738199 commit a762bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminator
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a762bb9

Please sign in to comment.