It's possible that Windows application can detect situation when applicationi is run under of Wine? Unity3D application project creation makses me wonder that it's possible somehow detect situationwh ne app si run under under of wien and disable some button and funtionality at startup.
cheers.
Apps and Wine detection
Re: Apps and Wine detection
Yes, it's possible. Whether Unity3D does it, I don't know.
Re: Apps and Wine detection
opwallin its totally not recommend to detect wine and automatically change options.
Each release of wine. Wine changes what functionality it supports. So you many end up disabling features when application is run on future versions of wine that don't need to be. Also wine does not promise to keep its detectability constant. Applications intentionally detecting wine may force wine to alter itself to avoid detection due to the fact you have most likely disabled something that will work in the future.
Correct way is adding a registry key or configuration file to your application that can be used to enable disable particular functionality as required. This is not design a wine dependent hack. Remember there is not only thing using wine libraries. Someone running your application on reactos, crossover.... may require the same override. There is also the outside case that something on a normal windows system might require the same override.
opwallin we have a appdb that gives users instructions. It would also be possible to add a option in the program installer. Program installer attempting to detect wine and providing wine particular options to be flicked on and off would be along the path of sane. Auto detection of wine and disabling features basically not a option. Also even if you do it in the program installer including setup.exe --wine or equal to force wine options to appear would be required future proofing.
Sorry to say designing to detect wine is most likely the hard path. Adding options that people can be given in instructions to disable particular options is most likely the sane path. Don't care if it windows or wine over all. Is the easiest path.
Each release of wine. Wine changes what functionality it supports. So you many end up disabling features when application is run on future versions of wine that don't need to be. Also wine does not promise to keep its detectability constant. Applications intentionally detecting wine may force wine to alter itself to avoid detection due to the fact you have most likely disabled something that will work in the future.
Correct way is adding a registry key or configuration file to your application that can be used to enable disable particular functionality as required. This is not design a wine dependent hack. Remember there is not only thing using wine libraries. Someone running your application on reactos, crossover.... may require the same override. There is also the outside case that something on a normal windows system might require the same override.
opwallin we have a appdb that gives users instructions. It would also be possible to add a option in the program installer. Program installer attempting to detect wine and providing wine particular options to be flicked on and off would be along the path of sane. Auto detection of wine and disabling features basically not a option. Also even if you do it in the program installer including setup.exe --wine or equal to force wine options to appear would be required future proofing.
Sorry to say designing to detect wine is most likely the hard path. Adding options that people can be given in instructions to disable particular options is most likely the sane path. Don't care if it windows or wine over all. Is the easiest path.