sddm.conf: also configure Session for autologin to work [release 0.18.0-3mamba;Sun Sep 09 2018]

This commit is contained in:
Silvan Calarco 2024-01-05 17:41:28 +01:00
parent 48e2a1e80c
commit 531f186f7c

View File

@ -2,7 +2,7 @@
%define group_sddm 68
Name: sddm
Version: 0.18.0
Release: 2mamba
Release: 3mamba
Summary: QML based X11 and Wayland display manager
Group: Graphical Desktop/Applications/Environment
Vendor: openmamba
@ -76,11 +76,14 @@ useradd -u %{user_sddm} -g sddm \
if [ $1 -ge 1 ]; then
[ -e /etc/sddm.conf.rpmsave ] && {
eval `grep ^User= /etc/sddm.conf.rpmsave`
}
eval `grep ^Session= /etc/sddm.conf.rpmsave`
}
[ "${Session}" ] || Session="plasma"
[ -e /etc/sddm.conf ] || {
cat > /etc/sddm.conf << _EOF
[Autologin]
User=${User}
Session=${Session}
_EOF
}
if [ -e /opt/kde/share/config/kdm/kdmrc -a ! "${User}" ]; then
@ -128,6 +131,9 @@ fi
%doc LICENSE
%changelog
* Sun Sep 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.0-3mamba
- sddm.conf: also configure Session for autologin to work
* Wed Sep 05 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.0-2mamba
- reconfigure autologin user after upgrade