Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/libinput-gestures b/libinput-gestures 2index 78c7c28..1a2c965 100755 3--- a/libinput-gestures 4+++ b/libinput-gestures 5@@ -87,11 +87,11 @@ def get_libinput_vers(): 6 'Return the libinput installed version number string' 7 # Try to use newer libinput interface then fall back to old 8 # (depreciated) interface. 9- res = run(('libinput', '--version'), check=False) 10+ res = run(('@libinput@', '--version'), check=False) 11 if res: 12 return res.strip(), True 13 14- res = run(('libinput-list-devices', '--version'), check=False) 15+ res = run(('@libinput-list-devices@', '--version'), check=False) 16 return res and res.strip(), False 17 18 def get_devices_list(cmd_list_devices, device_list): 19@@ -694,11 +694,11 @@ def main(): 20 sys.exit('libinput helper tools do not seem to be installed?') 21 22 if has_subcmd: 23- cmd_debug_events = 'libinput debug-events' 24- cmd_list_devices = 'libinput list-devices' 25+ cmd_debug_events = '@libinput@ debug-events' 26+ cmd_list_devices = '@libinput@ list-devices' 27 else: 28- cmd_debug_events = 'libinput-debug-events' 29- cmd_list_devices = 'libinput-list-devices' 30+ cmd_debug_events = '@libinput@-debug-events' 31+ cmd_list_devices = '@libinput@-list-devices' 32 33 if args.verbose: 34 # Output various info/version info