summaryrefslogtreecommitdiff
path: root/src/env.sh
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-20 10:03:53 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-10-06 09:29:17 +0200
commit0cefe056603a6535fc91bd3ff40c17763f70c94f (patch)
treeec70fa97e6c995c0b014def3de969f446387c59e /src/env.sh
parent7f96d00e24d8086eeaf169e1b821c3845fc06334 (diff)
downloaddotfiles-0cefe056603a6535fc91bd3ff40c17763f70c94f.tar.gz
dotfiles-0cefe056603a6535fc91bd3ff40c17763f70c94f.tar.bz2
dotfiles-0cefe056603a6535fc91bd3ff40c17763f70c94f.zip
env.sh: Set XDG_RUNTIME_DIR only not already
Diffstat (limited to 'src/env.sh')
-rwxr-xr-xsrc/env.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/env.sh b/src/env.sh
index e4e02eb..0c20afb 100755
--- a/src/env.sh
+++ b/src/env.sh
@@ -23,5 +23,7 @@ doecho export EGL_DRIVER=egl_dri2
doecho export EGL_LOG_LEVEL=debug
#doecho export EGL_PLATFORM=wayland
-doecho export XDG_RUNTIME_DIR=$home/src
+if [ "x$XDG_RUNTIME_DIR" = "x" ]; then
+ doecho export XDG_RUNTIME_DIR=$home/src
+fi
doecho export SDL_VIDEODRIVER=wayland