mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
fix(fingerprint): Refactor fingerprint hardware check to use fprintd-list for device detection (#3948)
This commit is contained in:
@@ -20,7 +20,11 @@ print_info() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_fingerprint_hardware() {
|
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."
|
print_error "\nNo fingerprint sensor detected."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user