]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/30_env/30_env.ax-io
30_env.ax-io: Create individual XDG_RUNTIME_DIR, when not set
[ax-zsh.git] / core / 30_env / 30_env.ax-io
index 803f30eaeab18a4af4001ad1de96123e47d29061..1910bd412665984da635a493a8cf57abf8f5dc6d 100644 (file)
@@ -27,7 +27,7 @@ export XDG_CACHE_HOME
 
 # Setup XDG runtime directory
 if [[ -z "$XDG_RUNTIME_DIR" ]]; then
-       XDG_RUNTIME_DIR="${TMPDIR:-/tmp/${UID}-runtime-dir}"
+       XDG_RUNTIME_DIR="$TMPDIR/runtime-dir.$UID"
 fi
 if [[ ! -d "$XDG_RUNTIME_DIR" ]]; then
        mkdir -p "$XDG_RUNTIME_DIR"