Die if python-i3ipc
not found on sway; Config tooltips updated.
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
import os
|
||||
sway = False
|
||||
|
||||
if os.getenv('SWAYSOCK') is not None:
|
||||
from i3ipc import Connection
|
||||
i3 = Connection()
|
||||
i3 = None
|
||||
|
||||
ipc_data = None
|
||||
|
||||
|
@@ -42,7 +42,11 @@ from nwg_panel import common
|
||||
|
||||
sway = os.getenv('SWAYSOCK') is not None
|
||||
if sway:
|
||||
from i3ipc import Connection
|
||||
try:
|
||||
from i3ipc import Connection
|
||||
except ModuleNotFoundError:
|
||||
print("'python-i3ipc' package required on sway, terminating")
|
||||
sys.exit(1)
|
||||
|
||||
common.i3 = Connection()
|
||||
from nwg_panel.modules.sway_taskbar import SwayTaskbar
|
||||
|
Reference in New Issue
Block a user