Comment 3 for bug 357847

Revision history for this message
Martin Pitt (pitti) wrote :

Matt Zimmerman came up with this idea as well, he made a quick sketch how it could look like:

------------------ 8< ------------------
zenity --title="Select window" --question --text="Please click on the window where you see the problem." &
zenity_pid=$!

window_pid=$(xprop _NET_WM_PID |cut -d= -f2)

kill $zenity_pid

if [ -z "$window_pid" ]; then
        echo "Sorry." >&2
        exit 1
fi

exec ubuntu-bug $window_pid