Commit 206491d0 authored by Michael Shigorin's avatar Michael Shigorin

x11-autologin: nopasswdlogin group for sddm too

See also this somewhat related conversation (in Russian): https://forum.altlinux.org/index.php?topic=28619.345
parent b31006e2
......@@ -109,6 +109,8 @@ SDDM_RC=/etc/X11/sddm/sddm.conf
SDDM_SESSION=
if [ -f "$SDDM_RC" ]; then
backup "$SDDM_RC"
backup "/etc/group"
add_nopasswdlogin_group sddm ||:
sed -i "s,^User=$,&$USER," "$SDDM_RC"
if [ -f /usr/share/xsessions/lxqt.desktop ]; then
SDDM_SESSION=LXQt
......@@ -119,6 +121,7 @@ if [ -f "$SDDM_RC" ]; then
sed -i "s,^Session=$,&$SDDM_SESSION," "$SDDM_RC"
fi
restore_later "$SDDM_RC"
restore_later "/etc/group"
fi
## nodm autologin (the last since the most intrusive)
......
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