Fallback on ctypes' find_library to load libxkbcommon
This commit is contained in:
parent
9da095ca50
commit
8d21a5b6b3
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,10 @@ def load_libxkb_lookup():
|
|||
break
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
from ctypes.util import find_library
|
||||
lib = find_library('xkbcommon')
|
||||
|
||||
f = lib.xkb_keysym_from_name
|
||||
f.argtypes = [ctypes.c_char_p, ctypes.c_int]
|
||||
f.restype = ctypes.c_int
|
||||
|
|
|
|||
Loading…
Reference in a new issue