1827855 Members
1511 Online
109969 Solutions
New Discussion

Re: X version

 
SOLVED
Go to solution
Miguel Silva Rentes
Regular Advisor

X version

Hi everyone!

How can I know what is the version of X in a Tru64 5.1B server? Doing a "X -version" doesn't work: I get a list of options but none of them display the X version. Does anyone know how to obtain this information from the command line?

Regards,

Miguel Rentes
2 REPLIES 2
Rick Retterer
Respected Contributor
Solution

Re: X version

Miguel,
You can execute the command:

# /usr/bin/X11/xdpyinfo -display :0.0

and look at the Xserver information...

vendor release number: 6500

Which means version v6.5

-or-

The macro XmVERSION gives you the version number. The macro

XmREVISION gives you the major revision number. The macro XmVersion combines
these e.g. a value of 1002 is Motif 1.2. In Motif 1.2, the macro

XmUPDATE_LEVEL was added to give the minor revision number (also known as the
patch level).

To find the version of a compiled Motif library:

grep XmVERSION_STRING libXm.a

To find the Motif version at run-time, use the global variable:

xmUseVersion


X11/Xlib.h should have macros like this:

#define XlibSpecificationRelease 6
meaning X11R6.

Similarly, X11/Intrinsic.h has this in
X11R6:
#define XtSpecificationRelease 6

- Rick Retterer



Miguel Silva Rentes
Regular Advisor

Re: X version

Thank you very much Rick, that info was exactly what I wanted!

Best regards,

Miguel Rentes