]> arthur.barton.de Git - ax-zsh.git/commitdiff
30_env.ax-io: Create individual XDG_RUNTIME_DIR, when not set
authorAlexander Barton <alex@barton.de>
Sat, 6 Mar 2021 14:30:31 +0000 (15:30 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 6 Mar 2021 14:30:31 +0000 (15:30 +0100)
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"