mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 14:10:06 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -233,8 +233,8 @@ dbus_core_init(void)
|
|||
memset(&bus_info, 0, sizeof(bus_info));
|
||||
bus_info.fd = -1;
|
||||
bus_info.hooks = NULL;
|
||||
bus_info.connection = NULL;
|
||||
bus_info.timer = TimerSet(NULL, 0, 1, reconnect_timer, NULL);
|
||||
if (!connect_to_bus())
|
||||
bus_info.timer = TimerSet(NULL, 0, 1, reconnect_timer, NULL);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue