From b558e17960cf44323245a7bad425c2b6ed346a63 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Mon, 27 Aug 2012 21:36:43 +0200 Subject: Add configure option to specify directory of some tools Add --with-gnome-settings-daemon-directory and --with-consolekit-directory for distributions that do not put gnome-settings-daemon and ck-get-x11-display-device directly in LIBEXECDIR. Closes: bgo#582320 --- daemon/Makefile.am | 1 + daemon/gdm-server.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'daemon') diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 8e74620b..dae7f132 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -20,6 +20,7 @@ AM_CPPFLAGS = \ -DGDM_SCREENSHOT_DIR=\"$(GDM_SCREENSHOT_DIR)\" \ -DGDM_CACHE_DIR=\""$(localstatedir)/cache/gdm"\" \ -DGDM_SESSION_DEFAULT_PATH=\"$(GDM_SESSION_DEFAULT_PATH)\" \ + -DCONSOLEKIT_DIR=\"$(CONSOLEKIT_DIR)\" \ $(DISABLE_DEPRECATED_CFLAGS) \ $(DAEMON_CFLAGS) \ $(XLIB_CFLAGS) \ diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c index a0e62b09..e1e9c39e 100644 --- a/daemon/gdm-server.c +++ b/daemon/gdm-server.c @@ -147,7 +147,7 @@ _gdm_server_query_ck_for_display_device (GdmServer *server) g_return_val_if_fail (GDM_IS_SERVER (server), NULL); error = NULL; - command = g_strdup_printf (LIBEXECDIR "/ck-get-x11-display-device --display %s", + command = g_strdup_printf (CONSOLEKIT_DIR "/ck-get-x11-display-device --display %s", server->priv->display_name); g_debug ("GdmServer: Running helper %s", command); -- cgit v1.2.1