diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 14:34:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 15:39:51 -0400 |
commit | 969410c5af909199724973b8851fcb6bf19eaba2 (patch) | |
tree | 14d7e75ecebda9439a4a96b647e13ecb2d66622a /.config/login.d/03_tmpdir.sh | |
parent | c0a9c2902e60cc980343a65f5519e7c9e2dcd081 (diff) |
clean up XDG_RUNTIME_DIR handling
Diffstat (limited to '.config/login.d/03_tmpdir.sh')
-rw-r--r-- | .config/login.d/03_tmpdir.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/login.d/03_tmpdir.sh b/.config/login.d/03_tmpdir.sh new file mode 100644 index 0000000..b94ef1a --- /dev/null +++ b/.config/login.d/03_tmpdir.sh @@ -0,0 +1,4 @@ +if [ -n "$XDG_RUNTIME_DIR" ]; then + mkdir -p -- "$XDG_RUNTIME_DIR/tmpdir" + export TMPDIR="$XDG_RUNTIME_DIR/tmpdir" +fi |