diff options
Diffstat (limited to 'kde')
-rw-r--r-- | kde/post-install/kde-baseapps.post-install | 4 | ||||
-rw-r--r-- | kde/post-install/kde-baseapps/profile.d/kde.csh | 9 | ||||
-rw-r--r-- | kde/post-install/kde-baseapps/profile.d/kde.sh | 10 |
3 files changed, 18 insertions, 5 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/* diff --git a/kde/post-install/kde-baseapps/profile.d/kde.csh b/kde/post-install/kde-baseapps/profile.d/kde.csh index a09579b..bb0ea69 100644 --- a/kde/post-install/kde-baseapps/profile.d/kde.csh +++ b/kde/post-install/kde-baseapps/profile.d/kde.csh @@ -3,10 +3,17 @@ if ( ! $?KDEDIRS ) then setenv KDEDIRS /usr endif -setenv PATH ${PATH}:/usr/lib/kde4/libexec +setenv PATH ${PATH}:/usr/lib/kf5:/usr/lib/kde4/libexec if ( $?XDG_CONFIG_DIRS ) then setenv XDG_CONFIG_DIRS ${XDG_CONFIG_DIRS}:/etc/kde/xdg else setenv XDG_CONFIG_DIRS /etc/xdg:/etc/kde/xdg endif + +if ( ! $?XDG_RUNTIME_DIR ) then + setenv XDG_RUNTIME_DIR /tmp/xdg-runtime-$USER + mkdir -p $XDG_RUNTIME_DIR + chown $USER $XDG_RUNTIME_DIR + chmod 700 $XDG_RUNTIME_DIR +endif 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 |