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
This commit is contained in:
Mike Blumenkrantz 2015-10-15 12:58:32 -04:00
parent f6245e5535
commit 56ff9ead03
1 changed files with 1 additions and 1 deletions

View File

@ -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)