From b7fbca06e07719925830fbad2571cb6a5f8a65f7 Mon Sep 17 00:00:00 2001 From: Nick Price Date: Sat, 11 Jul 2026 17:42:18 -0700 Subject: [PATCH] hidapi: look for the unsuffixed libhidapi.so FreeBSD's comms/hidapi installs the library as libhidapi.so / libhidapi.so.0, without a backend suffix. None of the existing candidate names match it, so LoadLibrary exhausts the list and the module raises ImportError at import time, making Solaar unusable there. --- lib/hidapi/hidapi_impl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hidapi/hidapi_impl.py b/lib/hidapi/hidapi_impl.py index d9fc3047..38ba3e4f 100644 --- a/lib/hidapi/hidapi_impl.py +++ b/lib/hidapi/hidapi_impl.py @@ -60,6 +60,8 @@ _library_paths = ( "libhidapi-hidraw.so.0", "libhidapi-libusb.so", "libhidapi-libusb.so.0", + "libhidapi.so", + "libhidapi.so.0", "libhidapi-iohidmanager.so", "libhidapi-iohidmanager.so.0", "libhidapi.dylib",