mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
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 @@ else:
|
|||
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…
Add table
Add a link
Reference in a new issue