summaryrefslogtreecommitdiff
path: root/dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-13 01:07:02 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-13 01:07:02 +0100
commit036643a247c659db8e1b3df1778d51553a816ec9 (patch)
tree1ffe6bdfec708fec46adb58c531bb2455f399cee /dbus.c
parent65d2ebdc3408c81a947de8712b37b9398d955465 (diff)
config: implement search path logic
Diffstat (limited to 'dbus.c')
-rw-r--r--dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus.c b/dbus.c
index bfec0f9782..bef8bb885f 100644
--- a/dbus.c
+++ b/dbus.c
@@ -378,7 +378,7 @@ int bus_init(Manager *m) {
dbus_connection_set_change_sigpipe(FALSE);
dbus_error_init(&error);
- if (!(m->bus = dbus_bus_get_private(m->running_as == MANAGER_USER ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &error))) {
+ if (!(m->bus = dbus_bus_get_private(m->running_as == MANAGER_SESSION ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &error))) {
log_error("Failed to get D-Bus connection: %s", error.message);
dbus_error_free(&error);
return -ECONNREFUSED;