forked from mirrored-repos/manjaro-tools
[util-livecd] change AutomaticLogin username based on conf file also for gdm
This commit is contained in:
parent
d3b4806071
commit
739e6f6808
1 changed files with 2 additions and 0 deletions
|
@ -436,5 +436,7 @@ configure_displaymanager(){
|
|||
sed -i -e "s|^User=.*|User=${username}|" /etc/sddm.conf
|
||||
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
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue