[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/18: home: Use warning instead of display.
From: |
guix-commits |
Subject: |
04/18: home: Use warning instead of display. |
Date: |
Fri, 5 Aug 2022 09:28:54 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3b1510b8b9033068e4f6fa842c674824fdadc7a8
Author: Andrew Tropin <andrew@trop.in>
AuthorDate: Tue Aug 2 08:20:38 2022 +0300
home: Use warning instead of display.
* gnu/home/services/xdg.scm (compute-on-first-login-script): Use warning
instead of display.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/home/services.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/home/services.scm b/gnu/home/services.scm
index d71aa16a7d..75ea54743d 100644
--- a/gnu/home/services.scm
+++ b/gnu/home/services.scm
@@ -368,9 +368,11 @@ activation.")))
(define (compute-on-first-login-script _ gexps)
(program-file
"on-first-login"
- (with-imported-modules (source-module-closure '((guix i18n)))
+ (with-imported-modules (source-module-closure '((guix i18n)
+ (guix diagnostics)))
#~(begin
- (use-modules (guix i18n))
+ (use-modules (guix i18n)
+ (guix diagnostics))
#$%initialize-gettext
(let* ((xdg-runtime-dir (or (getenv "XDG_RUNTIME_DIR")
@@ -387,7 +389,7 @@ activation.")))
(begin #$@gexps (touch flag-file-path)))
;; TRANSLATORS: 'on-first-login' is the name of a service and
;; shouldn't be translated
- (display (G_ "XDG_RUNTIME_DIR doesn't exists, on-first-login
script
+ (warning (G_ "XDG_RUNTIME_DIR doesn't exists, on-first-login
script
won't execute anything. You can check if xdg runtime directory exists,
XDG_RUNTIME_DIR variable is set to appropriate value and manually execute the
script by running '$HOME/.guix-home/on-first-login'"))))))))
- branch master updated (bd956bc57b -> d11a432adf), guix-commits, 2022/08/05
- 03/18: home: xdg: Skip mkdir XDG_RUNTIME_DIR in activation script., guix-commits, 2022/08/05
- 05/18: tests: Make tests inside container reproducible., guix-commits, 2022/08/05
- 07/18: gnu: gnome-shell-extension-appindicator: Update to 42., guix-commits, 2022/08/05
- 08/18: gnu: Add texlive-abstract., guix-commits, 2022/08/05
- 09/18: gnu: Add texlive-breqn., guix-commits, 2022/08/05
- 11/18: gnu: Add texlive-datatool., guix-commits, 2022/08/05
- 13/18: gnu: Add texlive-sourcesanspro., guix-commits, 2022/08/05
- 02/18: home: xdg: Use a single @ instead of @@., guix-commits, 2022/08/05
- 04/18: home: Use warning instead of display.,
guix-commits <=
- 01/18: disarchive-manifest: Filter out origins without a hash., guix-commits, 2022/08/05
- 10/18: gnu: Add texlive-comment., guix-commits, 2022/08/05
- 12/18: gnu: Add texlive-physics., guix-commits, 2022/08/05
- 16/18: gnu: mumps: Update to 5.5.1, guix-commits, 2022/08/05
- 06/18: gnu: openssl: Keep .dll.a files in main output., guix-commits, 2022/08/05
- 17/18: gnu: mumps: Add alternate source code URL., guix-commits, 2022/08/05
- 18/18: guix system: Remove unused 'read-operating-system' procedure., guix-commits, 2022/08/05
- 15/18: gnu: Add texlive-sourcecodepro., guix-commits, 2022/08/05
- 14/18: gnu: Add texlive-sourceserifpro., guix-commits, 2022/08/05