summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-08-22 21:24:05 +0200
committer Eric Hameleers <alien@slackware.com>2016-08-22 21:24:05 +0200
commit3888bd4d2acb08fb1a391740276d35b7fc633aac (patch)
tree4e3f513f64e8e88b9da538325ab83c5b17719e95
parent046f213f765032acd08039cafaa69b5bc46304cb (diff)
downloadktown-3888bd4d2acb08fb1a391740276d35b7fc633aac.tar.gz
ktown-3888bd4d2acb08fb1a391740276d35b7fc633aac.tar.xz
Define XDG_RUNTIME_DIR /run/user/$USER
This is possible now that the elogind package adds a rc.elogind script which executes in rc.local and creates the tmpfs directory "/run/user".
-rw-r--r--kde/post-install/kde-baseapps/profile.d/kde.csh2
-rw-r--r--kde/post-install/kde-baseapps/profile.d/kde.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/kde/post-install/kde-baseapps/profile.d/kde.csh b/kde/post-install/kde-baseapps/profile.d/kde.csh
index bb0ea69..ce8f0c3 100644
--- a/kde/post-install/kde-baseapps/profile.d/kde.csh
+++ b/kde/post-install/kde-baseapps/profile.d/kde.csh
@@ -12,7 +12,7 @@ else
endif
if ( ! $?XDG_RUNTIME_DIR ) then
- setenv XDG_RUNTIME_DIR /tmp/xdg-runtime-$USER
+ setenv XDG_RUNTIME_DIR /run/user/$USER
mkdir -p $XDG_RUNTIME_DIR
chown $USER $XDG_RUNTIME_DIR
chmod 700 $XDG_RUNTIME_DIR
diff --git a/kde/post-install/kde-baseapps/profile.d/kde.sh b/kde/post-install/kde-baseapps/profile.d/kde.sh
index 8883fc8..dfc93bd 100644
--- a/kde/post-install/kde-baseapps/profile.d/kde.sh
+++ b/kde/post-install/kde-baseapps/profile.d/kde.sh
@@ -10,7 +10,7 @@ else
XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg
fi
if [ "$XDG_RUNTIME_DIR" = "" ]; then
- XDG_RUNTIME_DIR=/tmp/xdg-runtime-$USER
+ XDG_RUNTIME_DIR=/run/user/$USER
mkdir -p $XDG_RUNTIME_DIR
chown $USER $XDG_RUNTIME_DIR
chmod 700 $XDG_RUNTIME_DIR