summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-22 18:29:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-22 18:29:32 -0400
commitd778afdf6f48a3f67d2744ebe527faa5bc4993b9 (patch)
tree2544a18a66e3d0fbc97ef3309cb05db8249d1407 /src/lib
parentb5a2ca0dc092e113344072ebba6555f3da07cf88 (diff)
conf.sh: also set XDG_CACHE_HOME
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/conf.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/conf.sh b/src/lib/conf.sh
index 830eb01..f4f2549 100644
--- a/src/lib/conf.sh
+++ b/src/lib/conf.sh
@@ -7,6 +7,9 @@ LIBREHOME="$(eval echo ~$LIBREUSER)"
if [[ -z ${XDG_CONFIG_HOME:-} ]]; then
export XDG_CONFIG_HOME="${LIBREHOME}/.config"
fi
+if [[ -z ${XDG_CACHE_HOME:-} ]]; then
+ export XDG_CACHE_HOME="${LIBREHOME}/.cache"
+fi
# Generic functions ############################################################