宋文武 <iyzs...@gmail.com> skribis: > * gnu/services/xorg.scm (xinitrc)[builder]: Don't check the existence > of COMMAND. Only run ~/.xsession when it exists.
[...] > + (when (file-exists? "~/.xsession") > + (exec-from-login-shell (string-append home "/.xsession"))) That doesn’t work because ~ won’t get expanded. What about this: (catch 'system-error (lambda () ;; First, try to run ~/.xsession. (exec-from-login-shell (string-append home "/.xsession"))) (lambda args ;; Then try to start the specified session. (exec-from-login-shell session))) Thanks, Ludo’.