How to get the list of open windows from xserver
From the CLI you can use xwininfo -tree -root If you need to do this within your own code then you need to use the XQueryTree function from the Xlib library.
From the CLI you can use xwininfo -tree -root If you need to do this within your own code then you need to use the XQueryTree function from the Xlib library.
The networking subsystem in WSL2 is different than the used in WSL1. You must consider the differences to access networking apps running on Windows and on Linux: In WSL1, Linux uses the same IP addresses than the Windows host, then, you can access the applications using localhost or 127.0.0.1 In WSL2, Linux runs on a … Read more
Note that some incomplete answers might lead to security flaws. Using ssh -Y means here having fake xauth information which is bad! ssh -X should work since XQuartz, once enabled, uses xauth. The only problem is that ssh is looking for xauth in /usr/X11R6/bin and on macOS with XQuartz it is in /opt/X11/bin Secure solution: … Read more
I often need to run an X command on a server that is running many X servers, so the ps based answers do not work. Naturally, $DISPLAY has to be set appropriately. To check that that is valid, use xset q in some fragment like: if ! xset q &>/dev/null; then echo “No X server … Read more
or try this (from http://drupal.org/node/870058) Download wkhtmltopdf. Or better install it with a package manager: sudo apt-get install wkhtmltopdf Extract it and move it to /usr/local/bin/ Rename it to wkhtmltopdf so that now you have an executable at /usr/local/bin/wkhtmltopdf Set permissions: sudo chmod a+x /usr/local/bin/wkhtmltopdf Install required support packages. sudo apt-get install openssl build-essential xorg … Read more
You need to specify the -Djava.awt.headless=true parameter at startup time.