From f61fc62f8d9155effe6cf348499280c73b080db5 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 7 Dec 2020 09:15:56 +0100 Subject: Prepare for inclusion of Plasma5 into Slackware Like with KDE4, apply the Plasma5 related configuration only (and always) in case a Plasma5 installation is detected. This de-couples it from supporting only specific variants like PLASMA5 or DAW, because SLACKWARE will include Plasma5 as well. --- make_slackware_live.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/make_slackware_live.sh b/make_slackware_live.sh index e4151e7..549531c 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -2170,10 +2170,11 @@ EOT fi # End KDE4 -if [ "$LIVEDE" = "PLASMA5" -o "$LIVEDE" = "DAW" ]; then +# Only configure for Plasma5 if it is actually installed: +if [ -d ${LIVE_ROOTDIR}/usr/lib${DIRSUFFIX}/kf5 ]; then # -------------------------------------------------------------------------- # - echo "-- Configuring PLASMA5/DAW." + echo "-- Configuring Plasma5." # -------------------------------------------------------------------------- # # This section is for any Plasma5 based variant. @@ -2306,7 +2307,7 @@ text/html=kwebkitpart.desktop; EOT fi -fi # End LIVEDE = PLASMA5/DAW +fi # End Plasma5 if [ "$LIVEDE" = "DLACK" ]; then @@ -2631,9 +2632,9 @@ echo "-- Tweaking system startup." if [ "$LIVEDE" = "SLACKWARE" ]; then ln -sf xinitrc.kde ${LIVE_ROOTDIR}/etc/X11/xinit/xinitrc elif [ "$LIVEDE" = "DAW" ]; then - ln -sf xinitrc.plasma ${LIVE_ROOTDIR}/etc/X11/xinit/xinitrc + ln -sf xinitrc.kde ${LIVE_ROOTDIR}/etc/X11/xinit/xinitrc elif [ "$LIVEDE" = "PLASMA5" ]; then - ln -sf xinitrc.plasma ${LIVE_ROOTDIR}/etc/X11/xinit/xinitrc + ln -sf xinitrc.kde ${LIVE_ROOTDIR}/etc/X11/xinit/xinitrc elif [ "$LIVEDE" = "MATE" ]; then ln -sf xinitrc.mate-session ${LIVE_ROOTDIR}/etc/X11/xinit/xinitrc elif [ "$LIVEDE" = "CINNAMON" ]; then -- cgit v1.2.3