From af6c349ecccba2b5d03cede67dc3150a14ec0917 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sat, 4 Jan 2025 16:50:57 +0300 Subject: [PATCH] StatusNotifierItem: announce version and status --- blueman/main/indicators/StatusNotifierItem.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blueman/main/indicators/StatusNotifierItem.py b/blueman/main/indicators/StatusNotifierItem.py index 77c56a2ea..1c0275e85 100644 --- a/blueman/main/indicators/StatusNotifierItem.py +++ b/blueman/main/indicators/StatusNotifierItem.py @@ -13,8 +13,11 @@ class MenuService(DbusService): def __init__(self, on_activate_menu_item: MenuItemActivator) -> None: - super().__init__(None, "com.canonical.dbusmenu", "/org/blueman/sni/menu", Gio.BusType.SESSION) + super().__init__(None, "com.canonical.dbusmenu", "/org/blueman/sni/menu", Gio.BusType.SESSION, + {"Version": "u", "Status": "s"}) self._items: OrderedDict[int, MenuItemDict] = OrderedDict() + self.Version = 1 + self.Status = "normal" self._revision = 0 self._revision_advertised = -1 self._on_activate = on_activate_menu_item