From 948a03e28f94f2c368267a591d7fea7084d61c81 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 19 Jan 2015 14:39:51 -0500 Subject: daemon: add wrapper for launching X session This commit adds a utility for launching an X server and session together. This utility works a lot like xinit, but makes use of modern X features (like -displayfd) and has GDM specific integration (like reading from gdm configuration, and optionally running through /etc/gdm/Xsession) The eventual idea is to get the main GDM code out of the X server launching business and instead farm the logic off to an unprivileged helper that gets run within the logind session of the user. --- daemon/gdm-x-session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c index ce60a584..e97cfff5 100644 --- a/daemon/gdm-x-session.c +++ b/daemon/gdm-x-session.c @@ -224,6 +224,7 @@ spawn_x_server (State *state, arguments = g_ptr_array_new (); launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDIN_INHERIT); + g_subprocess_launcher_setenv (launcher, "DBUS_SESSION_BUS_ADDRESS", state->bus_address, TRUE); g_subprocess_launcher_take_fd (launcher, pipe_fds[1], DISPLAY_FILENO); if (g_getenv ("XDG_VTNR") != NULL) { -- cgit v1.2.1