From 11bab7ae9f7e8dba254312a80ca1293b5fb0eb64 Mon Sep 17 00:00:00 2001 From: Gundarin Roman Date: Fri, 4 Aug 2023 01:08:11 +0300 Subject: [PATCH] sni: register item: use `service` value according to the specs (#172) --- src/panel/widgets/tray/watcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panel/widgets/tray/watcher.cpp b/src/panel/widgets/tray/watcher.cpp index 4d09216d..0e80e400 100644 --- a/src/panel/widgets/tray/watcher.cpp +++ b/src/panel/widgets/tray/watcher.cpp @@ -139,7 +139,7 @@ void Watcher::on_interface_method_call(const Glib::RefPtr const auto service = service_variant.get(); if (method_name == "RegisterStatusNotifierItem") { - register_status_notifier_item(connection, sender, + register_status_notifier_item(connection, service[0] == '/' ? sender : service, service[0] == '/' ? service : "/StatusNotifierItem"); } else if (method_name == "RegisterStatusNotifierHost") {