Commit 90bf3fca authored by Michael Shigorin's avatar Michael Shigorin

x11-autologin: added initial sddm support

The unfortunate thing is that we have to take care for sessions, somehow; still there are only two for now (LXQt and KDE5 Plasma Desktop) so this doesn't look like a disaster just yet.
parent 11be6229
......@@ -104,6 +104,23 @@ if [ -f "$KDMRC" ]; then autologin_kdm "$KDMRC"; fi
KDMRC=/etc/X11/kdm4/kdmrc
if [ -f "$KDMRC" ]; then autologin_kdm "$KDMRC"; fi
## sddm autologin
SDDM_RC=/etc/X11/sddm/sddm.conf
SDDM_SESSION=
if [ -f "$SDDM_RC" ]; then
backup "$SDDM_RC"
sed -i "s,^User=$,&$USER," "$SDDM_RC"
if [ -f /usr/share/xsessions/lxqt.desktop ]; then
SDDM_SESSION=LXQt
elif [ -f /usr/share/xsessions/plasma.desktop ]; then
SDDM_SESSION=PLASMA
fi
if [ -n "$SDDM_SESSION" ]; then
sed -i "s,^Session=$,&$SDDM_SESSION," "$SDDM_RC"
fi
restore_later "$SDDM_RC"
fi
## nodm autologin (the last since the most intrusive)
# FIXME nodm and xinitrc should be modified (also in p6)
# WARNING: check user PATH if things go weird!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment