Commit 5e1edb48 authored by Anton Midyukov's avatar Anton Midyukov

x11-autologin: fix setup autologin for gdm >= 45

parent dcd687c8
......@@ -76,9 +76,9 @@ AUTOLOGIN_LIGHTDM
restore_later "/etc/group"
fi
## gdm2 autologin
GDM_CONF=/etc/X11/gdm/custom.conf
if [ -f "$GDM_CONF" ]; then
## gdm autologin
for GDM_CONF in /etc/gdm/custom.conf /etc/X11/gdm/custom.conf; do
[ -f "$GDM_CONF" ] || continue
backup "$GDM_CONF"
sed -i -e '/\[daemon\]/aAutomaticLoginEnable=true\nAutomaticLogin='$USER \
"$GDM_CONF"
......@@ -87,8 +87,7 @@ if [ -f "$GDM_CONF" ]; then
restore_later "$GDM_CONF"
restore_later "/etc/group"
fi
done
## lxdm autologin
LXDM_CONF=/etc/lxdm/lxdm.conf
......
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