Tias <[email protected]> writes:

> On 08/16/2010 07:55 AM, Eirik Byrkjeflot Anonsen wrote:
>> Tias<[email protected]>  writes:
>>
>>> Hey,
>>>
>>> In my program, I want to check that the xserver-xorg version is>=
>>> 1.8.0. What way to do this is advised:
[...]
>> This would probably be easier to answer if you gave some indication of
>> why you think you should refuse people with different X servers to run
>> or compile your application.
>
> Its not about refusing, its about using features:
> if the xserver is 1.8 or higher, my application can write an example
> xorg.conf.d snippet, otherwise it has to explain a different way of
> making calibration values permanent.

Ok, that makes some sense.  Remember to add switches for overriding your
heuristics :)

> xdpyinfo has a case-based section that calculates the release based on
> the XServerVendor() and XVendorRelease().
> I'll guess I'll go for a similar approach of strstr(ServerVendor(dpy),
> "X.Org") and VendorRelease(dpy) > 10800000.

Sounds like a "most likely to work" approach, yes.

eirik
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: [email protected]

Reply via email to