From 56ff9ead0353368d664c7badabbe0d03c204fdf9 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 15 Oct 2015 12:58:32 -0400 Subject: [PATCH] use dbus unique name for tracking systray sessions the env var DBUS_SESSION_BUS_ADDRESS may not be set for all platforms where enlightenment+dbus are usable, so it's necessary to get the dbus id to ensure that this value exists and is properly tracked --- src/modules/systray/e_mod_notifier_watcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/systray/e_mod_notifier_watcher.c b/src/modules/systray/e_mod_notifier_watcher.c index c091bb2eb..0bde9498b 100644 --- a/src/modules/systray/e_mod_notifier_watcher.c +++ b/src/modules/systray/e_mod_notifier_watcher.c @@ -187,7 +187,7 @@ systray_notifier_dbus_watcher_start(Eldbus_Connection *connection, E_Notifier_Wa unregistered_cb = unregistered; user_data = (void *)data; host_service = eina_stringshare_add("internal"); - dbus = getenv("DBUS_SESSION_BUS_ADDRESS"); + dbus = eldbus_connection_unique_name_get(conn); if (systray_ctx_get()->config->items) eina_hash_free_cb_set(systray_ctx_get()->config->items, (Eina_Free_Cb)systray_notifier_item_hash_del); if (systray_ctx_get()->config->dbus && systray_ctx_get()->config->items)