From 9eaf8c5cd78622b5a67e711743c05be7134178e0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:24:36 +0100 Subject: [PATCH] liveuser autologin support for sddm [release 3.90.0-3mamba;Wed Nov 15 2017] --- livecd-tools.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/livecd-tools.spec b/livecd-tools.spec index 41c23de..3ef8c50 100644 --- a/livecd-tools.spec +++ b/livecd-tools.spec @@ -5,7 +5,7 @@ %define lpadmin_gid 65032 Name: livecd-tools Version: 3.90.0 -Release: 2mamba +Release: 3mamba Summary: Live cd environment and utilities Group: System/Tools Vendor: openmamba @@ -116,6 +116,9 @@ if [ $1 -eq 0 ]; then # Unconfigure LXDM for autologin [ -e /etc/lxdm/lxdm.conf ] && sed -i "s|^autologin=liveuser|# autologin=|" \ /etc/lxdm/lxdm.conf + # Unconfigure LXDM for autologin + [ -e /etc/sddm.conf ] && sed -i "s|^User=liveuser|User=|;s|MinimumUid=.*|MinimumUid=1000|" \ + /etc/sddm.conf # Unconfigure GDM for autologin if [ -e /etc/gdm/custom.conf -a -e /etc/gdm/custom.conf.livesave ]; then mv /etc/gdm/custom.conf.livesave /etc/gdm/custom.conf @@ -146,6 +149,11 @@ if [ $1 -eq 1 ]; then # Configure LXDM for autologin [ -e /etc/lxdm/lxdm.conf ] && sed -i "s|# autologin.*|autologin=liveuser|" \ /etc/lxdm/lxdm.conf + # Configure SDDM for autologin + if [ -e /etc/sddm.conf ]; then + sed -i "s|User=.*|User=liveuser|;s|Session=.*|Session=plasma|;s|MinimumUid=.*|MinimumUid=999|" \ + /etc/sddm.conf + fi # Configure GDM for autologin if [ -e /etc/gdm/custom.conf ]; then mv /etc/gdm/custom.conf /etc/gdm/custom.conf.livesave @@ -187,6 +195,9 @@ fi %attr(-,liveuser,users) /home/liveuser/.kde4/share/config/* %changelog +* Wed Nov 15 2017 Silvan Calarco 3.90.0-3mamba +- liveuser autologin support for sddm + * Sat Sep 02 2017 Silvan Calarco 3.90.0-2mamba - create packager user/group in case it does not exist