aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-02-18 18:34:36 +0000
committerChristian Grothoff <christian@grothoff.org>2014-02-18 18:34:36 +0000
commit61cf48f3f9caab1c98686e5012fd400853f8fbdd (patch)
treed193c5a5c90daf676fc43db98b45f827d2add77c /src/util
parentd0baf851e0a717f9c1aeedaface4ba01c1d76dec (diff)
downloadgnunet-61cf48f3f9caab1c98686e5012fd400853f8fbdd.tar.gz
gnunet-61cf48f3f9caab1c98686e5012fd400853f8fbdd.zip
avoid problems with different users having different values for XDG_RUNTIME_DIR by not using that variable for system-wide paths of UNIX domain sockets
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util/util.conf b/src/util/util.conf
index 1627b068a..ef074fba0 100644
--- a/src/util/util.conf
+++ b/src/util/util.conf
@@ -26,7 +26,12 @@ GNUNET_CACHE_HOME = ${XDG_CACHE_HOME:-$GNUNET_HOME/.cache}/gnunet/
26# Runtime data (i.e UNIX domain sockets, locks, always lost on system boot) 26# Runtime data (i.e UNIX domain sockets, locks, always lost on system boot)
27# This is the variable for system-wide services; use GNUNET_USER_RUNTIME_DIR 27# This is the variable for system-wide services; use GNUNET_USER_RUNTIME_DIR
28# for per-user services (where USER_SERVICE=YES is set) 28# for per-user services (where USER_SERVICE=YES is set)
29GNUNET_RUNTIME_DIR = ${XDG_RUNTIME_DIR:-${TMPDIR:-${TMP:-/tmp}}}/gnunet-system-runtime/ 29# Note that the 'gnunet'/system user must have $TMPDIR/$TMP set to
30# exactly the same values as 'normal' users, otherwise this will fail.
31# If $TMPDIR or $TMP are set to different directories for different
32# users, this option should be changed to point to the same directory
33# for all users (i.e. by simply using "/tmp/gnunet-system-runtime/").
34GNUNET_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/gnunet-system-runtime/
30 35
31# Runtime data for per-user services 36# Runtime data for per-user services
32GNUNET_USER_RUNTIME_DIR = ${XDG_RUNTIME_DIR:-${TMPDIR:-${TMP:-/tmp}}}/gnunet-${USERHOME:-${USER:-user}}-runtime/ 37GNUNET_USER_RUNTIME_DIR = ${XDG_RUNTIME_DIR:-${TMPDIR:-${TMP:-/tmp}}}/gnunet-${USERHOME:-${USER:-user}}-runtime/