From 1409cd7831961080d4cc46366ad0cfbb3055fd2f Mon Sep 17 00:00:00 2001 From: Rizky Fauzi Ilmi Date: Wed, 7 Jan 2026 19:46:08 +0700 Subject: [PATCH] fix(fingerprint): Refactor fingerprint hardware check to use fprintd-list for device detection (#3948) --- bin/omarchy-setup-fingerprint | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-setup-fingerprint b/bin/omarchy-setup-fingerprint index 5319fdae..105234ff 100755 --- a/bin/omarchy-setup-fingerprint +++ b/bin/omarchy-setup-fingerprint @@ -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