home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!rational.com!twinkie!drk
- From: drk@twinkie.Rational.COM (David Kaelbling)
- Subject: Re: Which version of x server am I running?
- Message-ID: <drk.721244208@twinkie>
- Sender: news@rational.com
- Organization: Rational
- References: <1992Nov6.215837.23500@kocrsv01.delcoelect.com> <1dfhnjINN246@early-bird.think.com>
- Date: Sun, 8 Nov 1992 17:36:48 GMT
- Lines: 26
-
- barmar@think.com (Barry Margolin) writes:
-
- >>How do I find out which version of X server am I running?
-
- >Use xdpyinfo and look at lines 2 through 4. Version number 11.0
- >corresponds to X11, and when the vendor string is "MIT X Consortium" the
- >first digit of the vendor release number is the X11 release (other vendors
- >may put their own release number there -- for instance, Sun puts the
- >OpenWindows version number there).
-
- Not being the original poster I can't say for sure, but this answer is
- only approximate. Back around OpenWindows 2.0 patch 100176-09, Sun
- deliberately chose to stop incrementing the VendorRelease() field, so
- it is now impossible to programmatically distinguish between patch
- releases of the xnews server. Before then they followed the same
- "major*1000 + minor" convention used in IntrinsicP.h for XtVersion.
-
- If you're trying to make your code conditionally work around some
- specific bug in xnews (e.g. the Motif 1.2 crashes that are fixed by
- patch 100444-31, or the continuing saga of XCopyPlane() failures) you
- have no hope of succeeding -- you'll have to rely on your installation
- instructions to convince clients to upgrade all possible xnews servers
- to the desired patch level.
- --
- David Kaelbling (508) 520-8632 [home -7826]
- 12 Mountain Rock Ln.; Norfolk, MA 02056-1772 DKaelbling@Rational.COM
-