[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#34470] [PATCH 4/8] gnu: gdm: Use absolute path for gnome-session.
From: |
Timothy Sample |
Subject: |
[bug#34470] [PATCH 4/8] gnu: gdm: Use absolute path for gnome-session. |
Date: |
Wed, 13 Feb 2019 14:22:17 -0500 |
* gnu/packages/gnome.scm (gdm)[arguments]: Modify the pre-configure
phase to substitute in the absolute path of gnome-session.
[inputs]: Add gnome-session.
---
gnu/packages/gnome.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ac49ca7f2d..fdc5b68ef6 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5349,7 +5349,7 @@ libxml2.")
(modify-phases %standard-phases
(add-before
'configure 'pre-configure
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
;; We don't have <systemd/sd-daemon.h>.
(substitute* '("common/gdm-log.c"
"daemon/gdm-server.c"
@@ -5410,6 +5410,11 @@ libxml2.")
(substitute* '("daemon/gdm-x-session.c")
(("X_SERVER")
"g_getenv (\"GDM_X_SERVER\")"))
+ ;; Use an absolute path for GNOME Session.
+ (substitute* "daemon/gdm-launch-environment.c"
+ (("\"gnome-session\"")
+ (string-append "\"" (assoc-ref inputs "gnome-session")
+ "/bin/gnome-session\"")))
#t))
;; GDM needs GNOME Session to run these applications. We link
;; their autostart files in `share/gdm/greeter/autostart'
@@ -5441,6 +5446,7 @@ libxml2.")
`(("accountsservice" ,accountsservice)
("check" ,check) ; for testing
("elogind" ,elogind)
+ ("gnome-session" ,gnome-session)
("gnome-settings-daemon" ,gnome-settings-daemon)
("gtk+" ,gtk+)
("iso-codes" ,iso-codes)
--
2.20.1
- [bug#34470] [PATCH 0/8] GDM without GNOME Desktop, Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 7/8] services: gdm: Make dependencies explicit., Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 8/8] services: gdm: Allow for custom X session scripts., Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 6/8] gnu: gdm: Run dbus-daemon via a wrapper script., Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 4/8] gnu: gdm: Use absolute path for gnome-session.,
Timothy Sample <=
- [bug#34470] [PATCH 3/8] gnu: gdm: Add links to required login-session files., Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 5/8] gnu: gdm: Simplify pre-configure phase., Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 2/8] gnu: gnome-session: Use absolute paths in .desktop files., Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 1/8] services: gdm: Remove etc service., Timothy Sample, 2019/02/13
- [bug#34470] [PATCH 0/8] GDM without GNOME Desktop, Ludovic Courtès, 2019/02/16