diff options
author | Eric Hameleers <alien@slackware.com> | 2016-07-21 12:43:12 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-07-21 12:43:12 +0200 |
commit | 372bfb987532df1733c503caf9be0c02bf04d207 (patch) | |
tree | 1f6dde50eea27546118c67b47f16222a4f8766d9 /kde/post-install/kde-baseapps/profile.d/kde.sh | |
parent | 543ff446ded01444cd0479858293b937ba3f6d45 (diff) | |
download | ktown-372bfb987532df1733c503caf9be0c02bf04d207.tar.gz ktown-372bfb987532df1733c503caf9be0c02bf04d207.tar.xz |
kde-baseapps: define XDG_RUNTIME_DIR=/tmp/xdg-runtime-$USER
This environment variable will be required by future KWin. It already was
complaining if the variable was not set.
Temporarily (and for Slackware 14.2 which is immutable) the directory /tmp
will be used for this, but ultimately the user directory needs to be created
on a tmpfs like /run . This requires a change in Slackware itself which will
have to be done in slackware-current as follows:
-------- 8< -------------------------------------------------------
--- /etc/rc.d/rc.S.orig 2016-06-13 03:33:03.000000000 +0200
+++ /etc/rc.d/rc.S 2016-07-21 12:53:13.262043599 +0200
@@ -25,6 +25,9 @@
if ! grep -wq "tmpfs /run tmpfs" /proc/mounts ; then
/sbin/mount -v -n -t tmpfs tmpfs /run -o mode=0755
fi
+ # Create toplevel directory for runtime session data:
+ mkdir -p /run/user
+ chmod 1777 /run/user
fi
# Load the loop device kernel module:
-------- 8< -------------------------------------------------------
And the KDE profile script needs to be changed to:
-------- 8< -------------------------------------------------------
--- source/5/kde/post-install/kde-baseapps/profile.d/kde.sh.org 2016-07-21 11:36:30.484407127 +0200
+++ source/5/kde/post-install/kde-baseapps/profile.d/kde.sh 2016-07-21 12:51:37.561789507 +0200
@@ -10,7 +10,7 @@
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
-------- 8< -------------------------------------------------------
Diffstat (limited to '')
-rw-r--r-- | kde/post-install/kde-baseapps/profile.d/kde.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kde/post-install/kde-baseapps/profile.d/kde.sh b/kde/post-install/kde-baseapps/profile.d/kde.sh index 6f0199e..8883fc8 100644 --- a/kde/post-install/kde-baseapps/profile.d/kde.sh +++ b/kde/post-install/kde-baseapps/profile.d/kde.sh @@ -2,12 +2,18 @@ # KDE additions: KDEDIRS=/usr export KDEDIRS -PATH="$PATH:/usr/lib/kde4/libexec" +PATH="$PATH:/usr/lib/kf5:/usr/lib/kde4/libexec" export PATH if [ ! "$XDG_CONFIG_DIRS" = "" ]; then XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/kde/xdg else XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg fi -export XDG_CONFIG_DIRS +if [ "$XDG_RUNTIME_DIR" = "" ]; then + XDG_RUNTIME_DIR=/tmp/xdg-runtime-$USER + mkdir -p $XDG_RUNTIME_DIR + chown $USER $XDG_RUNTIME_DIR + chmod 700 $XDG_RUNTIME_DIR +fi +export XDG_CONFIG_DIRS XDG_RUNTIME_DIR |