mirror of
https://github.com/powerline/powerline.git
synced 2025-07-31 01:35:40 +02:00
Merge pull request #1914 from Aurze/fix-1875
Fix for i3 if you have i3-py and i3ipc install
This commit is contained in:
commit
e3c34e7136
@ -25,12 +25,13 @@ def i3_subscribe(conn, event, callback):
|
|||||||
Function to run on event.
|
Function to run on event.
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
import i3
|
import i3ipc
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
import i3
|
||||||
else:
|
|
||||||
conn.Subscription(callback, event)
|
conn.Subscription(callback, event)
|
||||||
return
|
return
|
||||||
|
else:
|
||||||
|
pass
|
||||||
|
|
||||||
conn.on(event, callback)
|
conn.on(event, callback)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user