status-notifier: Send bus name instead of object path
This fixes the problem that the StatusNotifierHostRegistered
signal was not emitted after all Status Notifier Host applets were removed from the panel.
If the object path is sent, status notifier watcher watches the sender of the service instead of the actual service. The sender of the service is not unique to the applet, and it vanishes only when the gnome-panel process is gone. In contrast, the service name is unique to the applet, and vanishes when the applet gets removed from the panel.
Also, the specification says that it should send its full name on the session bus, for instance org.freedesktop.StatusNotifierItem-4077-1
.
In short: send org.kde.StatusNotifierHost-<pid>-<id>
instead of /StatusNotifierHost/<id>
to meet the standard and fix the issue.