summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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