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:
Hans de Goede 2013-12-17 09:29:07 +01:00 committed by Keith Packard
parent 480590b90c
commit 33cec8af55

View File

@ -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;
} }