Add pkttyagent as fallback

This commit is contained in:
Sheldon Lee 2023-10-02 20:21:23 +08:00
parent e1f1fce3f6
commit 9f07695bd8

View File

@ -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\"\