From 95b00e4a1978a646e7640699c0ea85466b9f1ba9 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 18 May 2022 23:58:05 +0200 Subject: LEAN, DAW: fix changing the default Plasma wallpaper Frameworks 5.94.0 changed the file where the value of the 'defaultWallpaperTheme' property is defined. --- make_slackware_live.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'make_slackware_live.sh') 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} -- cgit v1.2.3