aboutsummaryrefslogtreecommitdiff
path: root/src/util/exchange-paths.conf
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-11-15 23:32:41 +0100
committerChristian Grothoff <christian@grothoff.org>2024-11-15 23:32:41 +0100
commitfbb3b3ca4b5d00635a83376bfabbdfa4dedb1694 (patch)
tree6c102d5702b299cc7cf199331ec149f00062bf2b /src/util/exchange-paths.conf
parent150e0ed551209484e6f5955dd6e7511e09d66a72 (diff)
split taler-config into taler-exchange-config and taler-merchant-config; separate resource files cleanly between taler-exchange and taler-merchant
Diffstat (limited to 'src/util/exchange-paths.conf')
-rw-r--r--src/util/exchange-paths.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/util/exchange-paths.conf b/src/util/exchange-paths.conf
new file mode 100644
index 000000000..cb080a4f5
--- /dev/null
+++ b/src/util/exchange-paths.conf
@@ -0,0 +1,29 @@
+# This file is in the public domain.
+#
+[PATHS]
+# The PATHS section is special, as filenames including $-expression are
+# expanded using the values from PATHS or the system environment (PATHS
+# is checked first). Taler also supports expanding $-expressions using
+# defaults with the syntax "${VAR:-default}". Here, "default" can again
+# be a $-expression.
+#
+# We usually want $HOME for $TALER_HOME, but we allow testcases to
+# easily override this by setting $TALER_TEST_HOME.
+#
+TALER_HOME = ${TALER_TEST_HOME:-${HOME:-${USERPROFILE}}}
+
+# see XDG Base Directory Specification at
+# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
+# for how these should be used.
+
+# Persistent data storage
+TALER_DATA_HOME = ${XDG_DATA_HOME:-${TALER_HOME}/.local/share}/taler-exchange/
+
+# Configuration files
+TALER_CONFIG_HOME = ${XDG_CONFIG_HOME:-${TALER_HOME}/.config}/taler-exchange/
+
+# Cached data, no big deal if lost
+TALER_CACHE_HOME = ${XDG_CACHE_HOME:-${TALER_HOME}/.cache}/taler-exchange/
+
+# Runtime data (always lost on system boot)
+TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/taler-exchange-runtime/