From 3eda8dd614fb1c1b44ce85fdaedcbe06245069ba Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Wed, 1 Nov 2017 22:12:52 -0400 Subject: [PATCH] services: gdm: Add environment variables. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While not an optimal solution (see comment), this makes GDM functional. * gnu/services/xorg.scm (gdm-shepherd-service): Set PATH and XDG_DATA_DIRS environment variables. Signed-off-by: Ludovic Courtès --- gnu/services/xorg.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 6200fa302a..c5a1a0d423 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -573,7 +573,14 @@ (define (gdm-shepherd-service config) #:environment-variables (list (string-append "GDM_X_SERVER=" - #$(gdm-configuration-x-server config)))))) + #$(gdm-configuration-x-server config)) + ;; XXX: GDM requires access to a handful of + ;; programs and components from Gnome (gnome-shell, + ;; dbus, and gnome-session among others). The + ;; following variables only work provided Gnome is + ;; installed. + "XDG_DATA_DIRS=/run/current-system/profile/share" + "PATH=/run/current-system/profile/bin")))) (stop #~(make-kill-destructor)) (respawn? #t))))