summaryrefslogtreecommitdiff
path: root/.config/login.d/03_tmpdir.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 17:11:18 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-13 17:11:18 -0400
commit278000a3b8a64fd000ddd8198f76bd2bf78e4557 (patch)
tree678dd30356203871af1a3c62ef087de9a3981637 /.config/login.d/03_tmpdir.sh
parent596fe4b1610df0a7f5a0ea174d136d179ee08440 (diff)
parent39db29c39dcca6d47fbc56dffd8c0c7bf63beb51 (diff)
Merge branch 'master' into build64-par/master
Diffstat (limited to '.config/login.d/03_tmpdir.sh')
-rw-r--r--.config/login.d/03_tmpdir.sh4
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