Skip to content

Commit

Permalink
fix: user: remove checklist_is_selection_empty for __user_enable_auto…
Browse files Browse the repository at this point in the history
…_login

checklist_is_selection_empty can cause it to be unable to turn off all automatic login sessions
  • Loading branch information
CodeChenL authored and RadxaYuntian committed Dec 17, 2024
1 parent ba31ad8 commit a435bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/lib/rsetup/tui/user/user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ __user_enable_auto_login (){
service="$(awk '{print $1}' <<< "$REPLY")"
checklist_add "$service" "$(get_autologin_status "$service")"
done < <(systemctl list-units --state running --no-legend -- "*getty@*.service" sddm.service gdm.service lightdm.service)
if ! checklist_show "Please select the service(s) you want to enable auto login:" || checklist_is_selection_empty
if ! checklist_show "Please select the service(s) you want to enable auto login:"
then
return
fi
Expand Down

0 comments on commit a435bd4

Please sign in to comment.