diff options
Diffstat (limited to 'src/dbus.c')
-rw-r--r-- | src/dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus.c b/src/dbus.c index 4365bca7bf..66076f021c 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -864,7 +864,7 @@ static int bus_init_api(Manager *m) { if (m->running_as == MANAGER_SYSTEM && m->system_bus) m->api_bus = m->system_bus; else { - if (!(m->api_bus = dbus_bus_get_private(m->running_as == MANAGER_SESSION ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &error))) { + if (!(m->api_bus = dbus_bus_get_private(m->running_as == MANAGER_USER ? DBUS_BUS_SESSION : DBUS_BUS_SYSTEM, &error))) { log_debug("Failed to get API D-Bus connection, retrying later: %s", error.message); r = 0; goto fail; |