2018-02-06 23:50:46 +00:00
|
|
|
diff --git a/libinput-gestures b/libinput-gestures
|
2018-10-18 21:40:01 +00:00
|
|
|
index aca94ac..c2f03ca 100755
|
2018-02-06 23:50:46 +00:00
|
|
|
--- a/libinput-gestures
|
|
|
|
+++ b/libinput-gestures
|
2018-10-18 21:40:01 +00:00
|
|
|
@@ -77,7 +77,7 @@ def get_libinput_vers():
|
2018-02-06 23:50:46 +00:00
|
|
|
'Return the libinput installed version number string'
|
|
|
|
# Try to use newer libinput interface then fall back to old
|
|
|
|
# (depreciated) interface.
|
|
|
|
- res = run(('libinput', '--version'), check=False)
|
|
|
|
+ res = run(('@libinput@', '--version'), check=False)
|
2018-10-18 21:40:01 +00:00
|
|
|
return res.strip() if res else \
|
|
|
|
run(('libinput-list-devices', '--version'), check=False)
|
2018-02-06 23:50:46 +00:00
|
|
|
|
2018-10-18 21:40:01 +00:00
|
|
|
@@ -87,8 +87,8 @@ if not libvers:
|
|
|
|
sys.exit('libinput helper tools do not seem to be installed?')
|
|
|
|
|
|
|
|
if Version(libvers) >= Version('1.8'):
|
2018-02-06 23:50:46 +00:00
|
|
|
- cmd_debug_events = 'libinput debug-events'
|
|
|
|
- cmd_list_devices = 'libinput list-devices'
|
2018-10-18 21:40:01 +00:00
|
|
|
+ cmd_debug_events = '@libinput@ debug-events'
|
|
|
|
+ cmd_list_devices = '@libinput@ list-devices'
|
|
|
|
else:
|
|
|
|
cmd_debug_events = 'libinput-debug-events'
|
|
|
|
cmd_list_devices = 'libinput-list-devices'
|
|
|
|
@@ -199,7 +199,7 @@ class COMMAND_internal(COMMAND):
|
2018-02-06 23:50:46 +00:00
|
|
|
|
|
|
|
def run(self):
|
|
|
|
'Get list of current workspaces and select next one'
|
|
|
|
- stdout = run(('wmctrl', '-d'), check=False)
|
|
|
|
+ stdout = run(('@wmctrl@', '-d'), check=False)
|
|
|
|
if not stdout:
|
|
|
|
# This command can fail on GNOME when you have only a single
|
|
|
|
# dynamic workspace using Xorg (probably a GNOME bug) so let's
|
2018-10-18 21:40:01 +00:00
|
|
|
@@ -233,7 +233,7 @@ class COMMAND_internal(COMMAND):
|
2018-02-06 23:50:46 +00:00
|
|
|
|
|
|
|
# Switch to desired workspace
|
|
|
|
if index >= minindex and index < maxindex:
|
|
|
|
- run(('wmctrl', '-s', str(index)))
|
|
|
|
+ run(('@wmctrl@', '-s', str(index)))
|
|
|
|
|
|
|
|
# Table of gesture handlers
|
|
|
|
handlers = OrderedDict()
|
2018-10-18 21:40:01 +00:00
|
|
|
--
|
|
|
|
2.19.1
|
|
|
|
|