and on osx - they use some other env var apparently.

SVN revision: 47281
This commit is contained in:
Carsten Haitzler 2010-03-16 08:11:23 +00:00
parent f72b20676a
commit 40cb95e25f
1 changed files with 2 additions and 1 deletions

View File

@ -529,7 +529,8 @@ main(int argc, char **argv)
snprintf(buf, sizeof(buf), "%s/bin/enlightenment", _prefix_path);
args = alloca((argc + 2 + VALGRIND_MAX_ARGS) * sizeof(char *));
if (!getenv("DBUS_SESSION_BUS_ADDRESS"))
if ((!getenv("DBUS_SESSION_BUS_ADDRESS")) &&
(!getenv("DBUS_LAUNCHD_SESSION_BUS_SOCKET")))
{
args[0] = "dbus-launch";
args[1] = "--exit-with-session";