liveuser autologin support for sddm [release 3.90.0-3mamba;Wed Nov 15 2017]

This commit is contained in:
Silvan Calarco 2024-01-06 06:24:36 +01:00
parent 1904d12974
commit 9eaf8c5cd7

View File

@ -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 <silvan.calarco@mambasoft.it> 3.90.0-3mamba
- liveuser autologin support for sddm
* Sat Sep 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.90.0-2mamba
- create packager user/group in case it does not exist