From 0a169cb744626ba3966292637cf18a36161e33d7 Mon Sep 17 00:00:00 2001 From: Rob McCathie Date: Sun, 19 Jul 2015 20:59:51 +1000 Subject: [PATCH] fix autologin in live session for GDM --- lib/util-livecd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util-livecd.sh b/lib/util-livecd.sh index b1ef97b..d011472 100644 --- a/lib/util-livecd.sh +++ b/lib/util-livecd.sh @@ -411,6 +411,6 @@ configure_displaymanager_autologin(){ elif [[ -f /usr/bin/lxdm ]];then sed -i -e "s/^.*autologin=.*/autologin=${username}/" /etc/lxdm/lxdm.conf elif [[ -f /usr/bin/gdm ]];then - sed -i -e "s/^.*AutomaticLogin=.*/AutomaticLogin=${username}/" /etc/gdm/custom.conf + sed -i -e "s/\[daemon\]/\[daemon\]\nAutomaticLogin=${username}\nAutomaticLoginEnable=True/" /etc/gdm/custom.conf fi }