From 1da9485f5fb601d2457902b5c2415ba5cc90319e Mon Sep 17 00:00:00 2001 From: Aurze Date: Tue, 29 May 2018 23:18:02 -0400 Subject: [PATCH] Fix if you have i3ipc and i3 on your system. Will prioritize i3ipc --- powerline/bindings/wm/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/powerline/bindings/wm/__init__.py b/powerline/bindings/wm/__init__.py index 130c0e4f..646b701a 100644 --- a/powerline/bindings/wm/__init__.py +++ b/powerline/bindings/wm/__init__.py @@ -25,12 +25,13 @@ def i3_subscribe(conn, event, callback): Function to run on event. ''' try: - import i3 + import i3ipc except ImportError: - pass - else: + import i3 conn.Subscription(callback, event) return + else: + pass conn.on(event, callback)