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