From 8d21a5b6b3162856b9f4ef12fabab3c374e080d0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Jun 2019 16:58:57 +0530 Subject: [PATCH] Fallback on ctypes' find_library to load libxkbcommon --- kitty/key_names.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/key_names.py b/kitty/key_names.py index 7c9440752..ea2ef6184 100644 --- a/kitty/key_names.py +++ b/kitty/key_names.py @@ -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