Skip to content

Commit

Permalink
Fix autologin for sddm
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrysostomus committed Jan 31, 2018
1 parent e3405b6 commit a9a8ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util-advanced.sh
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ enable_autologin() {
sddm) xsession=$(echo /mnt/usr/share/xsessions/* | xargs -n1 | head -n1 | rev | cut -d'/' -f 1 | rev)
[[ -e /mnt/etc/sddm.conf ]] || arch_chroot "sddm --example-config > /etc/sddm.conf"
sed -i "s/^User=/User=$autologin_user/g" /mnt/etc/sddm.conf
sed -i "s~^Session~Session=$xsession~g" /mnt/etc/sddm.conf
sed -i "s~^Session=~Session=$xsession~g" /mnt/etc/sddm.conf
;;
lxdm) sed -i "s/^# autologin=dgod/autologin=$autologin_user/g" /mnt/etc/lxdm/lxdm.conf
;;
Expand Down

0 comments on commit a9a8ab8

Please sign in to comment.