Wine does not support detecting of wine, therefore whatever method is
used, the wine developers may well change this in the future to suit.
Hence the detection method no longer works and the app now breaks.
Will Wine be abandoning its own set of registry keys?
I have also been searching for a way to detect if my application is running under wine. As I haven´t found an appropriate solution I came to the following solution. It may not be perfect and there is no guarantee that it will always be working but I think it is a good approach.
JonDoe wrote:I have also been searching for a way to detect if my application is running under wine. As I haven´t found an appropriate solution I came to the following solution.
It's a really bad way to detect Wine by looking at resources.
If you really want to have a reliable sure way to detect Wine - look for Wine specific export(s) from that dll. But as mentioned before, make it a user overridable in case Wine gets fixed, or developers want to actually use your app to verify correct functionality.