Comment 59 for bug 2012388

Revision history for this message
JSigma (jsigma) wrote :

Thank you for the assistance in this topic, particularly with xwininfo. I've resolved the Anydesk issue with a small bash script, which I execute via an alias to close Anydesk.

---

#!/bin/bash
window_id=$(xwininfo -root -tree | grep -E "200x200" | grep -E "\(has no name\)" | awk '{print $1}')
if [ ! -z "$window_id" ]; then
    flatpak kill com.anydesk.Anydesk > /dev/null 2>&1 &
    xdotool windowclose $window_id
fi