]> gitweb.factorcode.org Git - factor.git/commitdiff
io.files.temp.unix: changing cache directory to use XDG spec.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 9 Nov 2016 05:24:34 +0000 (21:24 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 9 Nov 2016 05:24:34 +0000 (21:24 -0800)
Typically this means ~/.cache/factor.

basis/io/files/temp/unix/unix.factor

index 26b659b5e70c708b36582c37f0392cab615ec8be..cf9df11a4b5f1a85d5d862e302be77d745f9a867 100644 (file)
@@ -1,7 +1,7 @@
 ! (c)2012 Joe Groff bsd license
-USING: io.files.temp io.pathnames system ;
+USING: io.files.temp io.pathnames system xdg ;
 IN: io.files.temp.unix
 
 M: unix default-temp-directory "/tmp/factor-temp" ;
 
-M: unix default-cache-directory home ".factor-cache" append-path ;
+M: unix default-cache-directory xdg-cache-home ".factor" append-path ;