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:
nearxos
2026-02-20 11:34:03 +02:00
parent 5372fcbb81
commit 80614cb400
2 changed files with 7 additions and 0 deletions

View File

@@ -107,6 +107,12 @@ if curl -fsSL "${FILE_SERVER}/99-default-session.conf" -o /etc/lightdm/lightdm.c
else
log "WARNING: Could not download 99-default-session.conf"
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) ---
log "--- KDE and Maliit ---"