From 33cec8af55d829cd77b297ae356ed7a00ce8523c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 17 Dec 2013 09:29:07 +0100 Subject: 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 Reviewed-by: Daniel Stone --- config/dbus-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/dbus-core.c b/config/dbus-core.c index 43d628194..b0fd92de4 100644 --- a/config/dbus-core.c +++ b/config/dbus-core.c @@ -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; } -- cgit v1.2.3