aboutsummaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-05-18 23:58:05 +0200
committer Eric Hameleers <alien@slackware.com>2022-05-18 23:58:05 +0200
commit95b00e4a1978a646e7640699c0ea85466b9f1ba9 (patch)
treea61393425441176512182c963cb055240acaa482 /make_slackware_live.sh
parenta8b702d718f085fcf54a83dd3ba5e43c73e01ca1 (diff)
downloadliveslak-95b00e4a1978a646e7640699c0ea85466b9f1ba9.tar.gz
liveslak-95b00e4a1978a646e7640699c0ea85466b9f1ba9.tar.xz
LEAN, DAW: fix changing the default Plasma wallpaper
Frameworks 5.94.0 changed the file where the value of the 'defaultWallpaperTheme' property is defined.
Diffstat (limited to 'make_slackware_live.sh')
-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}