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