Fix if you have i3ipc and i3 on your system. Will prioritize i3ipc
This commit is contained in:
parent
a5dd717ac4
commit
1da9485f5f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue