diff --git a/blueman/main/indicators/StatusNotifierItem.py b/blueman/main/indicators/StatusNotifierItem.py index 3ab75ad59..c0d0e6d6d 100644 --- a/blueman/main/indicators/StatusNotifierItem.py +++ b/blueman/main/indicators/StatusNotifierItem.py @@ -154,8 +154,8 @@ def on_watcher_appeared(*args: Any) -> None: "RegisterStatusNotifierItem", GLib.Variant("(s)", ("/org/blueman/sni",)), None, Gio.DBusCallFlags.NONE, -1) watcher_expected = True - except GLib.Error: - watcher_expected = False + except GLib.Error as e: + watcher_expected = not e.message.startswith("org.freedesktop.DBusError.ServiceUnknown") raise IndicatorNotAvailable def set_icon(self, icon_name: str) -> None: