services: gdm: Add environment variables.

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 <ludo@gnu.org>
This commit is contained in:
Timothy Sample 2017-11-01 22:12:52 -04:00 committed by Ludovic Courtès
parent 51bc8357e8
commit 3eda8dd614
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -573,7 +573,14 @@ makes the good ol' XlockMore usable."
#:environment-variables #:environment-variables
(list (string-append (list (string-append
"GDM_X_SERVER=" "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)) (stop #~(make-kill-destructor))
(respawn? #t)))) (respawn? #t))))