services: xorg: Properly handle the case where ~/.xession is used.
Fixes a regression introduced in
65c0f43649
in the case where users provide
~/.xsession and SESSION is #f.
* gnu/services/xorg.scm (xinitrc): In the XSESSION-FILE case, check
whether SESSION is #f.
master
parent
78bae62a25
commit
617e87bff1
|
@ -390,7 +390,8 @@ desktop session from the system or user profile will be used."
|
|||
x))))
|
||||
(if (file-exists? xsession-file)
|
||||
;; Run ~/.xsession when it exists.
|
||||
(apply exec-from-login-shell xsession-file session)
|
||||
(apply exec-from-login-shell xsession-file
|
||||
(or session '()))
|
||||
;; Otherwise, start the specified session or a fallback.
|
||||
(apply exec-from-login-shell
|
||||
(or session
|
||||
|
|
Reference in New Issue