Fix first login (#2550)

* fixed the firstlogin to edit 2nd file that is the main coonf after autologin is removed

* set session to xfce by default not ubuntu
This commit is contained in:
Richard Neese 2021-01-18 02:52:51 -05:00 committed by GitHub
parent 4660458821
commit 149ed2ed6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
[Seat:*]
user-session=ubuntu
user-session=xfce
greeter-show-manual-login=false
greeter-hide-users=false
allow-guest=false

View file

@ -306,8 +306,10 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
EOF
# select budgie session
[[ -x $(which budgie-desktop) ]] && sed -i "s/user-session.*/user-session=budgie-desktop/" /etc/lightdm/lightdm.conf.d/22-armbian-autologin.conf
[[ -x $(which budgie-desktop) ]] && sed -i "s/user-session.*/user-session=budgie-desktop/" /etc/lightdm/lightdm.conf.d/11-armbian.conf
[[ -x $(which budgie-desktop) ]] && sed -i "s/user-session.*/user-session=budgie-desktop/" /etc/lightdm/lightdm.conf.d/22-armbian-autologin.conf
# select deepin session
[[ -x $(which deepin-wm) ]] && sed -i "s/user-session.*/user-session=deepin-wm/" /etc/lightdm/lightdm.conf.d/11-armbian.conf
[[ -x $(which deepin-wm) ]] && sed -i "s/user-session.*/user-session=deepin-wm/" /etc/lightdm/lightdm.conf.d/22-armbian-autologin.conf
ln -sf /lib/systemd/system/lightdm.service /etc/systemd/system/display-manager.service