[Wine] Re: Checking if Wine is being used

dank daniel.r.kegel at gmail.com
Mon Mar 19 00:46:36 CDT 2007


flyerx_2000 at yahoo.com wrote:
> I am adapting a Windows application to make it Wine friendly. Some of
> the application's operations must be changed if it is running using
> Wine instead of Windows. Is there a way of checking, from within the
> application, if Wine is being used?
>
> Right now the user selects at startup if the application is running
> using Wine or just Windows but it would be nice if the process was
> automatic.

You can probably check an environment variable.
http://www.paulmcnett.com/vfp/wine/vfp-wine-whitepaper.pdf
suggests using getenv("_"); if that returns non-null, you're on Wine.
I haven't verified if that works.

What app are you adapting, and what do you do differently if you're
running on Wine?
- Dan



More information about the wine-users mailing list