[gdm/wip/wayland-at-login-screen: 70/70] daemon: add wrapper for launching X session
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/wayland-at-login-screen: 70/70] daemon: add wrapper for launching X session
- Date: Wed, 18 Feb 2015 06:29:22 +0000 (UTC)
commit 948a03e28f94f2c368267a591d7fea7084d61c81
Author: Ray Strode <rstrode redhat com>
Date: Mon Jan 19 14:39:51 2015 -0500
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
index ce60a58..e97cfff 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]