On Sun, Jan 27, 2019 at 1:16 PM Chris Laprise <tas...@posteo.net> wrote:
> On 01/27/2019 09:32 AM, Franz wrote: > > Command `wmctrl -l` gives the following error > > > > |Cannot get client list properties. (_NET_CLIENT_LIST or > _WIN_CLIENT_LIST)| > > This works for me with KDE. > > > > > > But when I use |wmctrl| to display info about the window manager, Qubes > > is indeed found: > > [user@personal ~]$ wmctrl -m > > Name: Qubes > > Class: N/A > > PID: N/A > > Window manager's "showing the desktop" mode: N/A > > > > What I am trying to do is to gracefully close firefox, but I get the > > same error: > > > > [user@personal ~]$ wmctrl -c firefox > > Cannot get client list properties. > > (_NET_CLIENT_LIST or _WIN_CLIENT_LIST) > > You could try using 'xdotool' instead: > xdotool search --name Firefox > > See my 'halt-vm-by-window' script from 'Qubes-scripts' project for > examples. You could go through the list of matching windows, find the VM > name with 'xprop', then issue a command like "qvm-run $vmname 'pkill > firefox'" which should send a normal TERM signal to Firefox. Its best to > wait about 5 seconds before trying to shut down the VM so the browser > state has time to be written to disk. > > thanks Chris xdotool does not seem to work either I tried to use the script posted here https://superuser.com/questions/583246/can-i-close-firefox-browser-tab-or-firefox-browser-from-ubuntu-terminal but it give this error: Defaulting to search window name, class, and classname Your windowmanager claims not to support _NET_ACTIVE_WINDOW, so the attempt to activate the window was aborted. xdo_activate_window on window:18874384 reported an error It may be a xfce problem since you wrote it works with KDE Best > -- > > Chris Laprise, tas...@posteo.net > https://github.com/tasket > https://twitter.com/ttaskett > PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886 > -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/CAPzH-qCkmkxjQJ5Hqkr%2BA%2BgUhNyjVwovybcUOZd8i6OXSBJ51A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.