systray - handle other non conforming notifier clients
serviceshould be org.xxxx or whatever... some do /org/... some do :1.89 and some comply with the std... so be more forgiving...
This commit is contained in:
parent
2236ca2fab
commit
1fdaa2a113
|
@ -69,6 +69,7 @@ register_item_cb(const Eldbus_Service_Interface *s_iface, const Eldbus_Message *
|
|||
/* if stupid, this app does not conform to http://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/
|
||||
* and is expecting to have its send id watched as it is not providing a real bus name here */
|
||||
stupid = !!strncmp(svc, "org.", 4);
|
||||
if ((stupid) && (svc[0] == ':')) stupid = EINA_FALSE;
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s/%s", stupid ? eldbus_message_sender_get(msg) : svc, stupid ? svc : "/StatusNotifierItem");
|
||||
service = eina_stringshare_add(buf);
|
||||
|
|
Loading…
Reference in New Issue