dbus-core: Attempt to connect to dbus ASAP
For systemd-logind integration we need the dbus connection to be available before enumerating input and gfx devices. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
480590b90c
commit
33cec8af55
|
@ -233,8 +233,8 @@ dbus_core_init(void)
|
||||||
memset(&bus_info, 0, sizeof(bus_info));
|
memset(&bus_info, 0, sizeof(bus_info));
|
||||||
bus_info.fd = -1;
|
bus_info.fd = -1;
|
||||||
bus_info.hooks = NULL;
|
bus_info.hooks = NULL;
|
||||||
bus_info.connection = NULL;
|
if (!connect_to_bus())
|
||||||
bus_info.timer = TimerSet(NULL, 0, 1, reconnect_timer, NULL);
|
bus_info.timer = TimerSet(NULL, 0, 1, reconnect_timer, NULL);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue