From 52d3669881f962755033a2a8caa04a23456bda57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=B6lfchen?= Date: Fri, 30 Aug 2024 10:53:02 +0000 Subject: [PATCH] fix: fix system tray not displaying anything (#1181) * fix: update snw's default path * docs: document changes to autogenerated files --- .../notifier_host/src/proxy/dbus_status_notifier_watcher.rs | 6 +++++- crates/notifier_host/src/proxy/mod.rs | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/notifier_host/src/proxy/dbus_status_notifier_watcher.rs b/crates/notifier_host/src/proxy/dbus_status_notifier_watcher.rs index 3336baaa..4ffb98fc 100644 --- a/crates/notifier_host/src/proxy/dbus_status_notifier_watcher.rs +++ b/crates/notifier_host/src/proxy/dbus_status_notifier_watcher.rs @@ -12,7 +12,11 @@ //! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html //! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces, use zbus::proxy; -#[proxy(interface = "org.kde.StatusNotifierWatcher", assume_defaults = true)] +#[proxy( + default_service = "org.kde.StatusNotifierWatcher", + interface = "org.kde.StatusNotifierWatcher", + default_path = "/StatusNotifierWatcher" +)] trait StatusNotifierWatcher { /// RegisterStatusNotifierHost method fn register_status_notifier_host(&self, service: &str) -> zbus::Result<()>; diff --git a/crates/notifier_host/src/proxy/mod.rs b/crates/notifier_host/src/proxy/mod.rs index 58b5128e..deb98d47 100644 --- a/crates/notifier_host/src/proxy/mod.rs +++ b/crates/notifier_host/src/proxy/mod.rs @@ -5,6 +5,11 @@ //! generated with [zbus-xmlgen](https://docs.rs/crate/zbus_xmlgen/latest) by running //! `zbus-xmlgen file crates/notifier_host/src/proxy/dbus_status_notifier_item.xml` and //! `zbus-xmlgen file crates/notifier_host/src/proxy/dbus_status_notifier_watcher.xml`. +//! +//! Note that the `dbus_status_notifier_watcher.rs` file has been slightly adjusted, the +//! default arguments to the [proxy](https://docs.rs/zbus/4.4.0/zbus/attr.proxy.html) +//! macro need some adjusting. +//! //! At the moment, `dbus_menu.xml` isn't used. //! //! For more information, see ["Writing a client proxy" in the zbus