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.
--
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/d0ba286e-c567-43b3-785b-bc3ca1bc4246%40posteo.net.
For more options, visit https://groups.google.com/d/optout.