live-iso-gnome/hooks/5-add-autologin.chroot
Ward from fusion-voyager-3 e11cb01783
All checks were successful
Release Nest COSMO amd64-v3 ISO / build (push) Successful in 13m16s
attempt to fix default session for live user & add cosmo ISOs
2024-08-12 16:24:35 +03:00

10 lines
520 B
Bash
Executable File

#!/bin/bash
mkdir -p /etc/gdm3 || true
mkdir -p /etc/sddm.conf.d/ || true
echo -e '[daemon]\nAutomaticLogin=pikaos\nAutomaticLoginEnable=True' >> /etc/gdm3/daemon.conf || true
sed '/WaylandEnable=false/ s/^\#*/\#/' -i /etc/gdm3/daemon.conf || true
ln -sf /etc/gdm3/daemon.conf /etc/gdm3/custom.conf
echo -e '[Autologin]\nUser=pikaos\nSession=plasma' > /etc/sddm.conf.d/zautologin.conf || true
echo -e '[User]\nSession=gnome\nIcon=/home/pikaos/.face\nSystemAccount=false' > /var/lib/AccountsService/users/pikaos || true