utils: 'cache-directory' honors 'XDG_CACHE_HOME'.
* guix/utils.scm (cache-directory): Honor 'XDG_CACHE_HOME', not 'XDG_CONFIG_HOME'.master
parent
0a2f2848d5
commit
3583b27b2c
|
@ -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"))))
|
||||
|
|
Reference in New Issue