Skip to content

Commit

Permalink
sni: register item: use service value according to the specs (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamorNiradnug authored Aug 3, 2023
1 parent d4e1434 commit 11bab7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panel/widgets/tray/watcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void Watcher::on_interface_method_call(const Glib::RefPtr<Gio::DBus::Connection>
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")
{
Expand Down

0 comments on commit 11bab7a

Please sign in to comment.