Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
d5e6badc by wurstsalat at 2025-08-03T13:00:42+02:00
fix: Notifications: Catch errors when trying to initialize Windows backend
Fixes #12409
- - - - -
1 changed file:
- gajim/gtk/notification.py
Changes:
=====================================
gajim/gtk/notification.py
=====================================
@@ -468,7 +468,12 @@ def _get_path_for_avatar_texture(texture: Gdk.Texture) ->
Path:
def get_notification_backend() -> NotificationBackend:
if sys.platform == "win32":
if int(platform.version().split(".")[2]) >=
MIN_WINDOWS_TOASTS_WIN_VERSION:
- return WindowsToastNotification()
+ try:
+ return WindowsToastNotification()
+ except OSError as e:
+ log.error(
+ "Error while trying to initialize notification backend:
%s", e
+ )
return DummyBackend()
if sys.platform == "darwin":
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d5e6badc0ae1a53a69ffedd4233ecfc944d6de01
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d5e6badc0ae1a53a69ffedd4233ecfc944d6de01
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]