summaryrefslogtreecommitdiffstats
path: root/kde/post-install/kde-baseapps.post-install
diff options
context:
space:
mode:
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
commit372bfb987532df1733c503caf9be0c02bf04d207 (patch)
tree1f6dde50eea27546118c67b47f16222a4f8766d9 /kde/post-install/kde-baseapps.post-install
parent543ff446ded01444cd0479858293b937ba3f6d45 (diff)
downloadktown-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 'kde/post-install/kde-baseapps.post-install')
-rw-r--r--kde/post-install/kde-baseapps.post-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/kde/post-install/kde-baseapps.post-install b/kde/post-install/kde-baseapps.post-install
index 8dda636..3ae4e1c 100644
--- a/kde/post-install/kde-baseapps.post-install
+++ b/kde/post-install/kde-baseapps.post-install
@@ -1,9 +1,9 @@
# Add profile scripts
mkdir -p $PKG/etc/profile.d
cat $CWD/post-install/kde-baseapps/profile.d/kde.sh \
- | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#" \
+ | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#g" \
> $PKG/etc/profile.d/kde.sh
cat $CWD/post-install/kde-baseapps/profile.d/kde.csh \
- | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#" \
+ | sed -e "s#/lib/#/lib${LIBDIRSUFFIX}/#g" \
> $PKG/etc/profile.d/kde.csh
chmod 0755 $PKG/etc/profile.d/*