at 22.05-pre 1.7 kB view raw
1diff --git a/libinput-gestures b/libinput-gestures 2index aca94ac..c2f03ca 100755 3--- a/libinput-gestures 4+++ b/libinput-gestures 5@@ -77,7 +77,7 @@ 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 return res.strip() if res else \ 12 run(('libinput-list-devices', '--version'), check=False) 13 14@@ -87,8 +87,8 @@ if not libvers: 15 sys.exit('libinput helper tools do not seem to be installed?') 16 17 if Version(libvers) >= Version('1.8'): 18- cmd_debug_events = 'libinput debug-events' 19- cmd_list_devices = 'libinput list-devices' 20+ cmd_debug_events = '@libinput@ debug-events' 21+ cmd_list_devices = '@libinput@ list-devices' 22 else: 23 cmd_debug_events = 'libinput-debug-events' 24 cmd_list_devices = 'libinput-list-devices' 25@@ -199,7 +199,7 @@ class COMMAND_internal(COMMAND): 26 27 def run(self): 28 'Get list of current workspaces and select next one' 29- stdout = run(('wmctrl', '-d'), check=False) 30+ stdout = run(('@wmctrl@', '-d'), check=False) 31 if not stdout: 32 # This command can fail on GNOME when you have only a single 33 # dynamic workspace using Xorg (probably a GNOME bug) so let's 34@@ -233,7 +233,7 @@ class COMMAND_internal(COMMAND): 35 36 # Switch to desired workspace 37 if index >= minindex and index < maxindex: 38- run(('wmctrl', '-s', str(index))) 39+ run(('@wmctrl@', '-s', str(index))) 40 41 # Table of gesture handlers 42 handlers = OrderedDict() 43-- 442.19.1 45