From b57c656f72cee42ebbd78fe2267689aecfbd970e Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Tue, 2 Aug 2022 08:00:21 +0300 Subject: home: xdg: Skip mkdir XDG_RUNTIME_DIR in activation script. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/home/services/xdg.scm (ensure-xdg-base-dirs-on-activation): Skip mkdir XDG_RUNTIME_DIR in activation script. Signed-off-by: Ludovic Courtès --- gnu/home/services/xdg.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'gnu/home/services/xdg.scm') diff --git a/gnu/home/services/xdg.scm b/gnu/home/services/xdg.scm index 04cf9d0aed..63c6041cd4 100644 --- a/gnu/home/services/xdg.scm +++ b/gnu/home/services/xdg.scm @@ -110,12 +110,18 @@ services more consistent.")) ((@ (guix build utils) mkdir-p) (getenv xdg-base-dir-variable))) - '#$(map (lambda (field) - (format - #f "XDG_~a" - (object->snake-case-string - (configuration-field-name field) 'upper))) - home-xdg-base-directories-configuration-fields))) + '#$(filter-map + (lambda (field) + (let ((variable + (string-append + "XDG_" + (object->snake-case-string + (configuration-field-name field) 'upper)))) + ;; XDG_RUNTIME_DIR shouldn't be created during activation + ;; and will be provided by elogind or other service. + (and (not (string=? "XDG_RUNTIME_DIR" variable)) + variable))) + home-xdg-base-directories-configuration-fields))) (define (last-extension-or-cfg config extensions) "Picks configuration value from last provided extension. If there -- cgit v1.2.3 select>
AgeCommit message (Expand)Author
2016-04-03build: Add a Guile custom test driver using SRFI-64....Mathieu Lirzin
2016-03-06tests: Disable grafting by default for most tests....Ludovic Courtès
2015-09-04monads: Fix 'liftN' fallback case....Ludovic Courtès
2015-06-08monads: Allow n-ary '>>=' expressions....Ludovic Courtès
2015-05-27monads: 'foldm', 'mapm', and 'anym' now take a list of regular values....Ludovic Courtès
2015-01-17monads: Add the state monad....Ludovic Courtès
2015-01-14monads: Move '%store-monad' and related procedures where they belong....Ludovic Courtès
2015-01-12monads: Remove 'derivation-expression'....Ludovic Courtès
2015-01-12monads: Rewrite 'text-file*' using gexps....Ludovic Courtès