diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 167b042..810c069 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -49,7 +49,7 @@ fn is_tray_supported() -> bool { }; if dbus.name_has_owner(bus_name).unwrap_or(false) { // Try to read the property; if it fails but watcher exists, assume true - if let Ok(proxy) = Proxy::new(&conn, bus_name.clone(), "/StatusNotifierWatcher", "org.kde.StatusNotifierWatcher") { + if let Ok(proxy) = Proxy::new(&conn, name, "/StatusNotifierWatcher", "org.kde.StatusNotifierWatcher") { if let Ok(registered) = proxy.get_property::("IsStatusNotifierHostRegistered") { return registered; }