mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
72f31fbc19
Don't bother skipping the version check, keep diff against upstream simple.
46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
diff --git a/libinput-gestures b/libinput-gestures
|
|
index aca94ac..c2f03ca 100755
|
|
--- a/libinput-gestures
|
|
+++ b/libinput-gestures
|
|
@@ -77,7 +77,7 @@ def get_libinput_vers():
|
|
'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)
|
|
return res.strip() if res else \
|
|
run(('libinput-list-devices', '--version'), check=False)
|
|
|
|
@@ -87,8 +87,8 @@ if not libvers:
|
|
sys.exit('libinput helper tools do not seem to be installed?')
|
|
|
|
if Version(libvers) >= Version('1.8'):
|
|
- cmd_debug_events = 'libinput debug-events'
|
|
- cmd_list_devices = 'libinput list-devices'
|
|
+ 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):
|
|
|
|
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
|
|
@@ -233,7 +233,7 @@ class COMMAND_internal(COMMAND):
|
|
|
|
# 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()
|
|
--
|
|
2.19.1
|
|
|