Downgrade libstartup-notification-1.so non-existence to warning
I'm not sure how common this library actually is. On my system, an Arch Linux system with 2,170 packages installed, including KDE (Plasma), I didn't have it. It's downgraded to a warning instead of printing a traceback.
This commit is contained in:
@@ -263,8 +263,13 @@ def init_startup_notification(window_handle: Optional[int], startup_id: Optional
|
|||||||
if window_handle is None:
|
if window_handle is None:
|
||||||
log_error('Could not perform startup notification as window handle not present')
|
log_error('Could not perform startup notification as window handle not present')
|
||||||
return None
|
return None
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
return init_startup_notification_x11(window_handle, startup_id)
|
return init_startup_notification_x11(window_handle, startup_id)
|
||||||
|
except OSError as e:
|
||||||
|
if not str(e).startswith("Failed to load libstartup-notification"):
|
||||||
|
raise e
|
||||||
|
log_error("{}. This has two main effects: you won't get a loading cursor when kitty is starting up, and kitty windows may appear under wrong X11 workspace.".format(str(e)))
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|||||||
Reference in New Issue
Block a user