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