forked from srbala/fedora-kickstarts
kde: support modifying existing /etc/sddm.conf
This commit is contained in:
parent
dd76377ad0
commit
12762c7a2d
@ -40,11 +40,16 @@ chmod a+x /home/liveuser/.xsession
|
||||
chown liveuser:liveuser /home/liveuser/.xsession
|
||||
|
||||
# set up autologin for user liveuser
|
||||
if [ -f /etc/sddm.conf ]; then
|
||||
sed -i 's/^#User=.*/User=liveuser/' /etc/sddm.conf
|
||||
sed -i 's/^#Session=.*/Session=kde-plasma.desktop/' /etc/sddm.conf
|
||||
else
|
||||
cat > /etc/sddm.conf << SDDM_EOF
|
||||
[Autologin]
|
||||
User=liveuser
|
||||
Session=kde-plasma.desktop
|
||||
SDDM_EOF
|
||||
fi
|
||||
|
||||
# add liveinst.desktop to favorites menu
|
||||
mkdir -p /home/liveuser/.kde/share/config/
|
||||
|
Loading…
Reference in New Issue
Block a user