From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eA6z8-00060c-9j for guix-patches@gnu.org; Thu, 02 Nov 2017 00:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eA6z5-0006p9-Ql for guix-patches@gnu.org; Thu, 02 Nov 2017 00:20:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38043) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eA6z5-0006p3-N5 for guix-patches@gnu.org; Thu, 02 Nov 2017 00:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eA6z5-0002kU-H4 for guix-patches@gnu.org; Thu, 02 Nov 2017 00:20:03 -0400 Subject: [bug#29112] [PATCH 3/3] services: gdm: Add environment variables. References: <87o9olbasy.fsf@ngyro.com> In-Reply-To: <87o9olbasy.fsf@ngyro.com> Resent-Message-ID: From: Timothy Sample Date: Wed, 1 Nov 2017 22:12:52 -0400 Message-ID: <87h8udb9t8.fsf@ngyro.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29112@debbugs.gnu.org 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. --- 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 6200fa302..c5a1a0d42 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -573,7 +573,14 @@ makes the good ol' XlockMore usable." #: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)))) -- 2.14.3