Fix LightDM autologin on Ubuntu 22.04+ (new hardware)

[SeatDefaults] is silently ignored by LightDM on newer Ubuntu versions.
Replace with [Seat:*] which is the correct section name for Ubuntu 22.04+.

Also add the kiosk user to the autologin group, which newer Ubuntu
requires for passwordless autologin to work.

Without these fixes, LightDM shows the login screen instead of
auto-logging in and launching the kiosk app.

https://claude.ai/code/session_01VQ13Fwq4MXxwThLfCXBeGr
This commit is contained in:
Claude
2026-06-16 18:04:36 +00:00
parent 879e2ecd14
commit 91d905f45a
+5 -1
View File
@@ -7558,8 +7558,12 @@ EOF
echo "[19/27] Configuring autologin..."
sudo mkdir -p /etc/lightdm/lightdm.conf.d
# [Seat:*] is required on Ubuntu 22.04+ ([SeatDefaults] is ignored on newer LightDM)
# Also add kiosk user to the autologin group required by newer Ubuntu
sudo groupadd -f autologin
sudo usermod -aG autologin "$KIOSK_USER"
sudo tee /etc/lightdm/lightdm.conf.d/10-kiosk.conf > /dev/null <<EOF
[SeatDefaults]
[Seat:*]
autologin-user=$KIOSK_USER
autologin-user-timeout=0
user-session=openbox