From 9f07695bd8600114ef1962d9b6ae7cc350b99ebc Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 2 Oct 2023 20:21:23 +0800 Subject: [PATCH] Add pkttyagent as fallback --- .config/scripts/libvirt/attach-usb | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/scripts/libvirt/attach-usb b/.config/scripts/libvirt/attach-usb index 8328cc5..c77395e 100755 --- a/.config/scripts/libvirt/attach-usb +++ b/.config/scripts/libvirt/attach-usb @@ -3,6 +3,7 @@ script_location="$(readlink -f "$0")" cd "$(dirname $script_location)" if [ "$(id -u)" -ne "0" ]; then + pkttyagent --process $$ & pkexec --keep-cwd sh -c "\ WAYLAND_DISPLAY=\"$WAYLAND_DISPLAY\"\ DISPLAY=\"$DISPLAY\"\