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.
This commit is contained in:
Nick Price 2026-07-11 17:42:18 -07:00
parent 8a941c5553
commit b7fbca06e0
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -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",