home: services: Fix regression in generated ‘on-first-login’ script.
Fixes <https://issues.guix.gnu.org/66659>. Fixes a regression introduced in6b0a321969
. The first attempt ine098ba2f49
to fix this issue didn't work. * gnu/home/services.scm (compute-on-first-login-script): Add ‘begin *unspecified*’ around #$@gexps. Change-Id: I14339ad684ffe93e692e507b57dcd221d96210ef Signed-off-by: Clément Lassieur <clement@lassieur.org>
parent
2ff8de3657
commit
2de3004267
|
@ -435,7 +435,10 @@ activation.")))
|
|||
;; after complete logout/reboot.
|
||||
(if (file-exists? xdg-runtime-dir)
|
||||
(when (claim-first-run flag-file-path)
|
||||
(begin #$@gexps)) ;GEXPS can be empty, hence 'begin'
|
||||
;; GEXPS can be empty, hence 'begin *unspecified*'. Having just
|
||||
;; 'begin' without '*unspecified*' leads to
|
||||
;; "Syntax error: ... sequence of zero expressions in form (begin)"
|
||||
(begin *unspecified* #$@gexps))
|
||||
;; TRANSLATORS: 'on-first-login' is the name of a service and
|
||||
;; shouldn't be translated
|
||||
(warning (G_ "XDG_RUNTIME_DIR doesn't exists, on-first-login script
|
||||
|
|
Reference in New Issue