Update first-boot.sh and 99-default-session.conf to enforce plasmax11 session settings: patch lightdm.conf for session consistency and add autologin-session configuration.
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
[Seat:*]
|
[Seat:*]
|
||||||
user-session=plasmax11
|
user-session=plasmax11
|
||||||
|
autologin-session=plasmax11
|
||||||
|
|||||||
@@ -107,6 +107,12 @@ if curl -fsSL "${FILE_SERVER}/99-default-session.conf" -o /etc/lightdm/lightdm.c
|
|||||||
else
|
else
|
||||||
log "WARNING: Could not download 99-default-session.conf"
|
log "WARNING: Could not download 99-default-session.conf"
|
||||||
fi
|
fi
|
||||||
|
# Raspberry Pi OS may apply main lightdm.conf after .conf.d; force session in main config too
|
||||||
|
if [[ -f /etc/lightdm/lightdm.conf ]]; then
|
||||||
|
sed -i 's/^user-session=.*/user-session=plasmax11/' /etc/lightdm/lightdm.conf
|
||||||
|
sed -i 's/^autologin-session=.*/autologin-session=plasmax11/' /etc/lightdm/lightdm.conf
|
||||||
|
log "Patched /etc/lightdm/lightdm.conf to use plasmax11"
|
||||||
|
fi
|
||||||
|
|
||||||
# --- 5. KDE touch-friendly + Maliit (from file server) ---
|
# --- 5. KDE touch-friendly + Maliit (from file server) ---
|
||||||
log "--- KDE and Maliit ---"
|
log "--- KDE and Maliit ---"
|
||||||
|
|||||||
Reference in New Issue
Block a user