From 117e00fe43597d448daa24c1a7ae3880c41cc538 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:41:28 +0100 Subject: [PATCH] set sddm.conf %config(noreplace) and configure autologin like in kdm [release 0.16.0-3mamba;Sun Nov 19 2017] --- sddm.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/sddm.spec b/sddm.spec index 02e9ec9..db7e2ac 100644 --- a/sddm.spec +++ b/sddm.spec @@ -2,7 +2,7 @@ %define group_sddm 68 Name: sddm Version: 0.16.0 -Release: 2mamba +Release: 3mamba Summary: QML based X11 and Wayland display manager Group: Graphical Desktop/Applications/Environment Vendor: openmamba @@ -66,13 +66,23 @@ useradd -u %{user_sddm} -g sddm \ %systemd_postun sddm : +%posttrans +if [ $1 -ge 1 ]; then + # Keep autologin when upgrading from KDM + KDM_AUTOLOGIN=`grep "^AutoLoginUser=" /opt/kde/share/config/kdm/kdmrc| sed "s|AutoLoginUser=||"` + if [ "${KDM_AUTOLOGIN}" ]; then + sed -i "s|^User=$|^User=${KDM_AUTOLOGIN}|" /etc/sddm.conf + fi +fi +: + %files %defattr(-,root,root) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf %{_sysconfdir}/pam.d/sddm %{_sysconfdir}/pam.d/sddm-autologin %{_sysconfdir}/pam.d/sddm-greeter -%{_sysconfdir}/sddm.conf +%config(noreplace) %{_sysconfdir}/sddm.conf %{_unitdir}/sddm.service %{_bindir}/sddm %{_bindir}/sddm-greeter @@ -99,6 +109,9 @@ useradd -u %{user_sddm} -g sddm \ %doc LICENSE %changelog +* Sun Nov 19 2017 Silvan Calarco 0.16.0-3mamba +- set sddm.conf %config(noreplace) and configure autologin like in kdm + * Wed Nov 15 2017 Silvan Calarco 0.16.0-2mamba - fix sddm-autologin pam file for openmamba