Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit a5b60c6

Browse files
committed
More compatible xdotool invocation
1 parent e949cbc commit a5b60c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

noproxy.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ mitmwin=`xdotool search --onlyvisible --name "mitmproxy" | head -n1 2>/dev/null`
3535
if [ -n "$mitmwin" ]; then
3636
# Cleanly exit mitmproxy to flush buffers
3737
echo "*** Sending quit keys to window $mitmwin ***"
38-
xdotool key --window $mitmwin q
39-
xdotool key --window $mitmwin q
40-
xdotool key --window $mitmwin y
38+
xdotool search --onlyvisible --name "mitmproxy" windowactivate; xdotool key q; xdotool key q; xdotool key y
4139
fi
4240

4341
# Give time to clean up

0 commit comments

Comments
 (0)