summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 466b09b..b2ab36d 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1199,7 +1199,14 @@ EOT
# Now set our wallpaper to be the default. For this to work, we need to link
# the name of the default theme to ours, so find out what the default is:
- DEF_THEME="$(grep ^defaultWallpaperTheme ${LIVE_ROOTDIR}/usr/share/plasma/desktoptheme/default/metadata.desktop |cut -d= -f2-)"
+ if [ -f "${LIVE_ROOTDIR}/usr/share/plasma/desktoptheme/default/metadata.desktop" ]; then
+ # Frameworks before 5.94.0:
+ THEMEFIL=/usr/share/plasma/desktoptheme/default/metadata.deskop
+ else
+ # Frameworks 5.94.0 and newer:
+ THEMEFIL=/usr/share/plasma/desktoptheme/default/plasmarc
+ fi
+ DEF_THEME="$(grep ^defaultWallpaperTheme ${LIVE_ROOTDIR}/${THEMEFIL} |cut -d= -f2-)"
mv ${LIVE_ROOTDIR}/usr/share/wallpapers/${DEF_THEME}{,.orig}
ln -s ${LIVEDE,,} ${LIVE_ROOTDIR}/usr/share/wallpapers/${DEF_THEME}