diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-11-19 17:45:28 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-11-19 17:45:28 +0100 |
commit | e6636bd5d6280d92996bd70b744e8a29e54c7e18 (patch) | |
tree | 014989bddcbc22c7a8d4dafa7b78f3e55b184718 /gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch | |
parent | 4b7471734323c7cb5bdc129857c94041418c81b5 (diff) | |
download | tde-packaging-e6636bd5d6280d92996bd70b744e8a29e54c7e18.tar.gz tde-packaging-e6636bd5d6280d92996bd70b744e8a29e54c7e18.zip |
Gentoo: Initial import of an ebuilds tree
from Fat-Zer's (Alexander Golubev) repository.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch')
-rw-r--r-- | gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch new file mode 100644 index 000000000..0d37eab5b --- /dev/null +++ b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch @@ -0,0 +1,46 @@ +--- startkde.orig 2011-09-19 14:54:22.812972431 +0400 ++++ startkde 2011-09-19 15:02:54.050401619 +0400 +@@ -9,6 +9,15 @@ + # because we still need to do some cleanup. + trap '[startkde] echo GOT SIGHUP' HUP + ++# Gentoo: setup environment, filter other slotted KDE installs from PATH ++_KDEDIR=@REPLACE_PREFIX@ ++#export KDEDIRS=${_KDEDIR}:/usr:/usr/local ++export PATH=${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g') ++export ROOTPATH=${_KDEDIR}/sbin:${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g') ++export LDPATH=@REPLACE_LIBS@:${LDPATH} ++export XDG_DATA_DIRS=${_KDEDIR}/share:$(echo ${XDG_DATA_DIRS} | sed 's/$/:/g;s#/usr/kde/[^/]*/share/\?:##g;s/:$//g') ++# Gentoo part ends ++ + # Check if a KDE session is already running. + if kcheckrunning >/dev/null 2>&1; then + echo "[startkde] KDE seems to be already running on this display." +@@ -340,6 +349,13 @@ + done + done + ++# Source scripts in /etc/X11/xinit/xinitrc.d/ for system-level defined stuff ++if test -d "/etc/X11/xinit/xinitrc.d/"; then ++ for file in "/etc/X11/xinit/xinitrc.d/"*; do ++ test -x "$file" && . "$file" ++ done ++fi ++ + # Activate the kde font directories. + # + # There are 4 directories that may be used for supplying fonts for KDE. +@@ -593,7 +609,12 @@ + # Clean up + kdeinit_shutdown + dcopserver_shutdown --wait +-artsshell -q terminate ++ ++# Terminate artsshell if it exists ++if [ -e ${_KDEDIR}/bin/artsshell ] ; then ++ artsshell -q terminate ; ++fi ++ + # KDE4 support + if [ -f /usr/bin/kdeinit4_shutdown ]; then + kde4 kdeinit4_shutdown 2>/dev/null |