Re: WEE under Wine

new topic     » goto parent     » topic index » view thread      » older message » newer message
K_D_R said...

can euphoria detect Wine?

DeveloperFaq said...

How can I detect Wine?

This is a bad idea. The goal of Wine is that an application will see no difference running under Wine rather than Windows. So any method to detect running under Wine is unsupported and may break without warning in the future.

Wine should not be treated as a "version" of Windows - functionality or performance-tuning is likely to be different between any two development versions.

Rather than detecting Wine:

  • Detect if functionality exists and use it when available.
  • File a bug if something works in Windows that does not work in Wine.
    • If you can write a minimal test that demonstrates the bug, even better!
  • Ask for help on the developers' list.

That said: There is nothing wrong with detecting Wine for survey purposes. Many developers are surprised to learn that a substantial portion of their userbase has been running their program via Wine; sometimes developers aren't even aware that this is possible.

If you still really want to detect Wine, check whether ntdll exports the function wine_get_version. (See http://www.winehq.org/pipermail/wine-devel/2008-September/069387.html )

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu