Browse Source

utils: 'cache-directory' honors 'XDG_CACHE_HOME'.

* guix/utils.scm (cache-directory): Honor 'XDG_CACHE_HOME', not
'XDG_CONFIG_HOME'.
version-0.11.0
Ludovic Courtès 6 years ago
parent
commit
3583b27b2c
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 2
      guix/utils.scm

2
guix/utils.scm

@ -637,7 +637,7 @@ output port, and PROC's result is returned."
(define (cache-directory)
"Return the cache directory for Guix, by default ~/.cache/guix."
(or (getenv "XDG_CONFIG_HOME")
(or (getenv "XDG_CACHE_HOME")
(and=> (or (getenv "HOME")
(passwd:dir (getpwuid (getuid))))
(cut string-append <> "/.cache/guix"))))

Loading…
Cancel
Save