From c885b85d77470a7bd771c3dfb4120886728382d4 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Dec 04 2023 17:18:43 +0000 Subject: livesys-kde: Enable Plasma Welcome for live environments with Plasma 6 Starting with KDE Plasma 6, there is support for welcoming a user into the new live environment and guiding them to install the operating system. This attempts to be a backward compatible change with the previous KDE Plasma 5 logic of disabling the welcome wizard entirely when live session support does not exist. --- diff --git a/libexec/livesys/sessions.d/livesys-kde b/libexec/livesys/sessions.d/livesys-kde index 4287e0d..e00002b 100755 --- a/libexec/livesys/sessions.d/livesys-kde +++ b/libexec/livesys/sessions.d/livesys-kde @@ -31,6 +31,19 @@ chmod +x /usr/share/applications/liveinst.desktop mkdir /home/liveuser/Desktop cp -a /usr/share/applications/liveinst.desktop /home/liveuser/Desktop/ +# For Plasma 6, set up plasma welcome for the live environment +if [ ! -f /etc/xdg/autostart/org.kde.plasma-welcome.desktop ]; then +cat > /home/liveuser/.config/plasma-welcomerc << KDEWELCOME_EOF +[General] +LiveEnvironment=true +LiveInstaller=liveinst +KDEWELCOME_EOF +else +# For Plasma 5 plasma-welcome, disable auto-starting +# Cf. https://bugs.kde.org/show_bug.cgi?id=466282 +rm -f /etc/xdg/autostart/org.kde.plasma-welcome.desktop +fi + # Set akonadi backend mkdir -p /home/liveuser/.config/akonadi cat > /home/liveuser/.config/akonadi/akonadiserverrc << AKONADI_EOF @@ -43,10 +56,6 @@ mkdir -p /home/liveuser/.config/autostart cp -a /etc/xdg/autostart/org.kde.discover.notifier.desktop /home/liveuser/.config/autostart/ echo 'Hidden=true' >> /home/liveuser/.config/autostart/org.kde.discover.notifier.desktop -# Disable plasma-welcome for now -# Cf. https://bugs.kde.org/show_bug.cgi?id=466282 -rm -f /etc/xdg/autostart/org.kde.plasma-welcome.desktop - # Disable baloo cat > /home/liveuser/.config/baloofilerc << BALOO_EOF [Basic Settings]