liveuser autologin support for sddm [release 3.90.0-3mamba;Wed Nov 15 2017]
This commit is contained in:
parent
1904d12974
commit
9eaf8c5cd7
@ -5,7 +5,7 @@
|
|||||||
%define lpadmin_gid 65032
|
%define lpadmin_gid 65032
|
||||||
Name: livecd-tools
|
Name: livecd-tools
|
||||||
Version: 3.90.0
|
Version: 3.90.0
|
||||||
Release: 2mamba
|
Release: 3mamba
|
||||||
Summary: Live cd environment and utilities
|
Summary: Live cd environment and utilities
|
||||||
Group: System/Tools
|
Group: System/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -116,6 +116,9 @@ if [ $1 -eq 0 ]; then
|
|||||||
# Unconfigure LXDM for autologin
|
# Unconfigure LXDM for autologin
|
||||||
[ -e /etc/lxdm/lxdm.conf ] && sed -i "s|^autologin=liveuser|# autologin=|" \
|
[ -e /etc/lxdm/lxdm.conf ] && sed -i "s|^autologin=liveuser|# autologin=|" \
|
||||||
/etc/lxdm/lxdm.conf
|
/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
|
# Unconfigure GDM for autologin
|
||||||
if [ -e /etc/gdm/custom.conf -a -e /etc/gdm/custom.conf.livesave ]; then
|
if [ -e /etc/gdm/custom.conf -a -e /etc/gdm/custom.conf.livesave ]; then
|
||||||
mv /etc/gdm/custom.conf.livesave /etc/gdm/custom.conf
|
mv /etc/gdm/custom.conf.livesave /etc/gdm/custom.conf
|
||||||
@ -146,6 +149,11 @@ if [ $1 -eq 1 ]; then
|
|||||||
# Configure LXDM for autologin
|
# Configure LXDM for autologin
|
||||||
[ -e /etc/lxdm/lxdm.conf ] && sed -i "s|# autologin.*|autologin=liveuser|" \
|
[ -e /etc/lxdm/lxdm.conf ] && sed -i "s|# autologin.*|autologin=liveuser|" \
|
||||||
/etc/lxdm/lxdm.conf
|
/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
|
# Configure GDM for autologin
|
||||||
if [ -e /etc/gdm/custom.conf ]; then
|
if [ -e /etc/gdm/custom.conf ]; then
|
||||||
mv /etc/gdm/custom.conf /etc/gdm/custom.conf.livesave
|
mv /etc/gdm/custom.conf /etc/gdm/custom.conf.livesave
|
||||||
@ -187,6 +195,9 @@ fi
|
|||||||
%attr(-,liveuser,users) /home/liveuser/.kde4/share/config/*
|
%attr(-,liveuser,users) /home/liveuser/.kde4/share/config/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Sep 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.90.0-2mamba
|
||||||
- create packager user/group in case it does not exist
|
- create packager user/group in case it does not exist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user