Skip to content

Commit 5eb3d83

Browse files
authored
fully fix xubuntu lightdm
1 parent 316d492 commit 5eb3d83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/firstrun.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ if [ x"$SHELLS_USERNAME" != x ]; then
9494
[[ -d /run/openrc ]] && sed -i -e 's/^.*minimum-vt=.*/minimum-vt=7/' /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
9595
gpasswd -a "${SHELLS_USERNAME}" autologin
9696
echo [SeatDefaults] > /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
97+
echo user-session=xubuntu >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
9798
echo autologin-user=${SHELLS_USERNAME} >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
9899
echo autologin-user-timeout=0 >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
99-
echo user-session=xubuntu >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
100+
echo session-cleanup-script=pkill -P1 -fx /usr/sbin/lightdm >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
100101
echo pam-autologin-service=lightdm-autologin >> /etc/lightdm/lightdm.conf.d/70-xubuntu.conf
101102
echo "auth sufficient pam_succeed_if.so user ingroup nopasswdlogin" >> /etc/pam.d/lightdm
102103
groupadd -r nopasswdlogin

0 commit comments

Comments
 (0)