fix autologin in live session for GDM
This commit is contained in:
parent
7967978171
commit
0a169cb744
1 changed files with 1 additions and 1 deletions
|
@ -411,6 +411,6 @@ configure_displaymanager_autologin(){
|
||||||
elif [[ -f /usr/bin/lxdm ]];then
|
elif [[ -f /usr/bin/lxdm ]];then
|
||||||
sed -i -e "s/^.*autologin=.*/autologin=${username}/" /etc/lxdm/lxdm.conf
|
sed -i -e "s/^.*autologin=.*/autologin=${username}/" /etc/lxdm/lxdm.conf
|
||||||
elif [[ -f /usr/bin/gdm ]];then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue