raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=385d26d9611a7e38ab7ba3e2d593aaa5106c18b4

commit 385d26d9611a7e38ab7ba3e2d593aaa5106c18b4
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Mar 15 20:53:18 2020 +0000

    systray - add a little logging and explicit stupid checks
---
 src/modules/systray/e_mod_notifier_watcher.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/modules/systray/e_mod_notifier_watcher.c 
b/src/modules/systray/e_mod_notifier_watcher.c
index ddd38cca7..56beeb021 100644
--- a/src/modules/systray/e_mod_notifier_watcher.c
+++ b/src/modules/systray/e_mod_notifier_watcher.c
@@ -68,8 +68,10 @@ register_item_cb(const Eldbus_Service_Interface *s_iface, 
const Eldbus_Message *
    svc = service;
    /* 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 (svc[0] == '/') stupid = EINA_TRUE;
+   else stupid = !!strncmp(svc, "org.", 4);
    if ((stupid) && (svc[0] == ':')) stupid = EINA_FALSE;
+   printf("SYSTRAY: [%s] stupid=%i\n", svc, (int)stupid);
 
    snprintf(buf, sizeof(buf), "%s/%s", stupid ? eldbus_message_sender_get(msg) 
: svc, stupid ? svc : "/StatusNotifierItem");
    service = eina_stringshare_add(buf);

-- 


Reply via email to