1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-24 18:11:51 +02:00

services: xorg: Honor ~/.xsession.

* gnu/services/xorg.scm (xinitrc): Attempt to execute ~/.xsession.
This commit is contained in:
Ludovic Courtès
2014-07-24 23:01:55 +02:00
parent 1dac856638
commit d9372161ef
+6 -1
View File
@@ -97,7 +97,12 @@ EndSection
#~(begin
(use-modules (ice-9 match))
;; TODO: Check for ~/.xsession.
;; First, try to run ~/.xsession.
(let* ((home (getenv "HOME"))
(file (string-append home "/.xsession")))
(false-if-exception (execl file file)))
;; Then try a pre-configured session type.
(match (command-line)
((_ "ratpoison")
(execl (string-append #$ratpoison "/bin/ratpoison")))