summaryrefslogtreecommitdiffstats
path: root/kde/post-install/kservice
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-10-24 15:52:07 +0200
committer Eric Hameleers <alien@slackware.com>2017-10-24 15:52:07 +0200
commit540fd6ae69a4ae306be8d8caa34fb3282892b369 (patch)
tree2f94110810359290f115bb9c610502b1ed541890 /kde/post-install/kservice
parent243061bcff66bc5491300110fd4e4866bbdf0636 (diff)
downloadktown-540fd6ae69a4ae306be8d8caa34fb3282892b369.tar.gz
ktown-540fd6ae69a4ae306be8d8caa34fb3282892b369.tar.xz
Add some hints for the future in the KDE profile scripts
Using /run/user instead of /tmp for XDG_RUNTIME_DIR would be more in line with XDG specs, but in that case we should mount /run as tmpfs and add this to the Slackware rc scripts after mounting /run: mkdir /run/user chmod 1777 /run/user Then, the XDG_RUNTIME_DIR definition would become: XDG_RUNTIME_DIR=/run/user/$USER
Diffstat (limited to 'kde/post-install/kservice')
-rw-r--r--kde/post-install/kservice/profile.d/kde.csh4
-rw-r--r--kde/post-install/kservice/profile.d/kde.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/kde/post-install/kservice/profile.d/kde.csh b/kde/post-install/kservice/profile.d/kde.csh
index bb0ea69..cce370c 100644
--- a/kde/post-install/kservice/profile.d/kde.csh
+++ b/kde/post-install/kservice/profile.d/kde.csh
@@ -12,6 +12,10 @@ else
endif
if ( ! $?XDG_RUNTIME_DIR ) then
+ # Using /run/user would be more in line with XDG specs, but in that case
+ # we should mount /run as tmpfs and add this to the Slackware rc scripts:
+ # mkdir /run/user ; chmod 1777 /run/user
+ # setenv XDG_RUNTIME_DIR /run/user/$USER
setenv XDG_RUNTIME_DIR /tmp/xdg-runtime-$USER
mkdir -p $XDG_RUNTIME_DIR
chown $USER $XDG_RUNTIME_DIR
diff --git a/kde/post-install/kservice/profile.d/kde.sh b/kde/post-install/kservice/profile.d/kde.sh
index 8883fc8..9448c34 100644
--- a/kde/post-install/kservice/profile.d/kde.sh
+++ b/kde/post-install/kservice/profile.d/kde.sh
@@ -10,6 +10,10 @@ else
XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg
fi
if [ "$XDG_RUNTIME_DIR" = "" ]; then
+ # Using /run/user would be more in line with XDG specs, but in that case
+ # we should mount /run as tmpfs and add this to the Slackware rc scripts:
+ # mkdir /run/user ; chmod 1777 /run/user
+ # XDG_RUNTIME_DIR=/run/user/$USER
XDG_RUNTIME_DIR=/tmp/xdg-runtime-$USER
mkdir -p $XDG_RUNTIME_DIR
chown $USER $XDG_RUNTIME_DIR