From b760fd9219a8e0e42b4edca7499dc32577e2e390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 5 Apr 2019 05:18:25 +0200 Subject: [PATCH] Convert qubes-input-trigger to python3 Fedora 30 require explicit python version in shebang. Since the script is very simple, use this occasion to make it python3 compatible. QubesOS/qubes-issues#4845 --- qubes-rpc/qubes-input-trigger | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes-rpc/qubes-input-trigger b/qubes-rpc/qubes-input-trigger index b1f08cf..38286fa 100755 --- a/qubes-rpc/qubes-input-trigger +++ b/qubes-rpc/qubes-input-trigger @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Trigger "add" udev even for all input mouse/keyboard devices. # Used to retry qrexec confirmation dialogs after user login @@ -14,7 +14,7 @@ for input_dev in eventFiles: eventFile = os.path.join("/dev/input", input_dev) if S_ISCHR(os.stat(eventFile).st_mode) != 0: # is character device? udevreturn = subprocess.check_output([ - "udevadm", "info", "--query=property", "--name=" + eventFile]) + "udevadm", "info", "--query=property", "--name=" + eventFile]).decode() if 'ID_INPUT_MOUSE' in udevreturn or \ 'ID_INPUT_KEYBOARD' in udevreturn or \ 'ID_INPUT_TABLET' in udevreturn or \