mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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>
This commit is contained in:
parent
2ff8de3657
commit
2de3004267
1 changed files with 4 additions and 1 deletions
|
@ -435,7 +435,10 @@ (define (claim-first-run file)
|
|||
;; 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
|
||||
|
|
Loading…
Reference in a new issue