Re: Checking if Wine is being used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



flyerx_2000@xxxxxxxxx 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

_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux