Submitted by Anonymous on Wed, 02/06/2002 - 03:17. Developers
Any help with this will be appreciated,
I need to get information on a system`s X engine..I basically need to konw if I`m able to send X driven apps to them.
This is a web driven tool for which I`m using php and its socket support. So far I am able to open the socket and in the case of x86 emulators, tell if they`re running the X engine or not. But I need to get more detailed information and specifically if it will accept the display.. I`ve read some threads that point to a utility called xwininfo? But I don`t know how that normally get`s called.
Again, I`ll appreciate any help/comments.
xwininfo is an application program ( http//www.motifzone.com/resources/man/xwininfo.html ) that gives you information about windows. It isn`t of too much use here. What you really want is http//www.motifzone.com/resources/man/xdpyinfo.html , which gives you more information about the server. Or, more properly, it sounds like you want to be able to try to do an XOpenDisplay() and then fail if necessary. And the way to do that is to call XOpenDisplay() and be prepared to handle a NULL Display* . The comp.windows.x FAQ (follow the links from http//www.motifzone.com/resources/other.html ) has more information on how to do this.
Thank you dbl, this is exactly what I was looking for...I appreciate the help.