fix(fingerprint): Refactor fingerprint hardware check to use fprintd-list for device detection (#3948)

This commit is contained in:
Rizky Fauzi Ilmi
2026-01-07 19:46:08 +07:00
committed by GitHub
parent 5800a0f4a1
commit 1409cd7831

View File

@@ -20,7 +20,11 @@ print_info() {
}
check_fingerprint_hardware() {
if ! lsusb | grep -Eiq 'fingerprint|synaptics|goodix|elan|validity|FPC'; then
# Get fingerprint devices for the user
devices=$(fprintd-list "$USER" 2>/dev/null)
# Exit if no devices found
if [[ -z "$devices" ]]; then
print_error "\nNo fingerprint sensor detected."
return 1
fi