[neon/neon/settings/Neon/release] usr/share/initramfs-tools/scripts/casper-bottom: enable plasma mobile and bigscreen live ISOs

Jonathan Esk-Riddell null at kde.org
Mon Nov 14 15:41:18 GMT 2022


Git commit 9d4cc85e9c770b55eb2fd8e7a9ab4658b1d82188 by Jonathan Esk-Riddell.
Committed on 14/11/2022 at 15:41.
Pushed by jriddell into branch 'Neon/release'.

enable plasma mobile and bigscreen live ISOs

M  +22   -1    usr/share/initramfs-tools/scripts/casper-bottom/40kde_neon_setup

https://invent.kde.org/neon/neon/settings/commit/9d4cc85e9c770b55eb2fd8e7a9ab4658b1d82188

diff --git a/usr/share/initramfs-tools/scripts/casper-bottom/40kde_neon_setup b/usr/share/initramfs-tools/scripts/casper-bottom/40kde_neon_setup
index 1448703..75b2e2d 100755
--- a/usr/share/initramfs-tools/scripts/casper-bottom/40kde_neon_setup
+++ b/usr/share/initramfs-tools/scripts/casper-bottom/40kde_neon_setup
@@ -63,7 +63,27 @@ rm -fv /root/lib/systemd/system/*.wants/ubiquity.service
 # we'll want to set Relogin to not ever end up in a scenario where sddm shows
 # the login prompt as the users will not know what the password is or what to
 # do.
-if [ -f /root/usr/bin/sddm ]; then
+if [ -f /root/usr/bin/sddm ] && [ -f /root/usr/bin/startplasmamobile ]; then
+    cat << EOF > /root/etc/sddm.conf
+[Users]
+MinimumUid=999
+
+[Autologin]
+User=$USERNAME
+Session=/usr/share/wayland-sessions/plasma-mobile.desktop
+Relogin=true
+EOF
+elif [ -f /root/usr/bin/sddm ] && [ -f /root/usr/bin/plasma-bigscreen-x11 ]; then
+    cat << EOF > /root/etc/sddm.conf
+[Users]
+MinimumUid=999
+
+[Autologin]
+User=$USERNAME
+Session=plasma-bigscreen-x11.desktop
+Relogin=true
+EOF
+elif [ -f /root/usr/bin/sddm ]; then
     cat << EOF > /root/etc/sddm.conf
 [Users]
 MinimumUid=999
@@ -75,6 +95,7 @@ Relogin=true
 EOF
 fi
 
+
 # Lower the minimum UID so software (e.g. Dolphin's Share tab) doesn't trip over the fact that the system
 # says the lowest "user" uid is 1000 but then the current user is clearly below that.
 sed -i -E 's/(^\s*UID_MIN\s+)([0-9]+)/\1 999/' /root/etc/login.defs


More information about the Neon-commits mailing list