set sddm.conf %config(noreplace) and configure autologin like in kdm [release 0.16.0-3mamba;Sun Nov 19 2017]
This commit is contained in:
parent
7946fbbc49
commit
117e00fe43
17
sddm.spec
17
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 <silvan.calarco@mambasoft.it> 0.16.0-3mamba
|
||||
- set sddm.conf %config(noreplace) and configure autologin like in kdm
|
||||
|
||||
* Wed Nov 15 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-2mamba
|
||||
- fix sddm-autologin pam file for openmamba
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user