services: slim: Pass SESSION to ~/.xsession as "$1".

* gnu/services/xorg.scm (xinitrc)[builder]: Pass SESSION to ~/.xsession.
This commit is contained in:
宋文武 2015-03-13 22:57:22 +08:00
parent e0b85670cf
commit 482dbe6a16

View file

@ -175,7 +175,7 @@ (define (exec-from-login-shell command . args)
(_ #$fallback-session))))
(if (file-exists? xsession-file)
;; Run ~/.xsession when it exists.
(exec-from-login-shell xsession-file)
(exec-from-login-shell xsession-file session)
;; Otherwise, start the specified session.
(exec-from-login-shell session)))))
(gexp->script "xinitrc" builder))