[gdm] gdm-wayland-session: don't hardcode path to dbus-daemon
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] gdm-wayland-session: don't hardcode path to dbus-daemon
- Date: Fri, 20 Feb 2015 15:31:20 +0000 (UTC)
commit 462cb489d33654012c70d12c76e4de8c323cbfe0
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 20 10:26:06 2015 -0500
gdm-wayland-session: don't hardcode path to dbus-daemon
It's not always in BINDIR, but it is always in the PATH,
so just let the shell/execvp figure it out.
https://bugzilla.gnome.org/show_bug.cgi?id=744787
daemon/gdm-wayland-session.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-wayland-session.c b/daemon/gdm-wayland-session.c
index 3f2651a..b2f3808 100644
--- a/daemon/gdm-wayland-session.c
+++ b/daemon/gdm-wayland-session.c
@@ -37,7 +37,6 @@
#include <gio/gunixinputstream.h>
#define BUS_ADDRESS_FILENO (STDERR_FILENO + 1)
-#define DBUS_DAEMON BINDIR "/dbus-daemon"
typedef struct
{
@@ -119,7 +118,7 @@ spawn_bus (State *state,
bus_address_fd_string = g_strdup_printf ("%d", BUS_ADDRESS_FILENO);
- g_ptr_array_add (arguments, DBUS_DAEMON);
+ g_ptr_array_add (arguments, "dbus-daemon");
g_ptr_array_add (arguments, "--print-address");
g_ptr_array_add (arguments, bus_address_fd_string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]