In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Detectar Wine o linux en general

Foro de Xailer profesional en español
Xavi[1]
Mensajes: 55
Registrado: Mar Jul 18, 2006 2:02 pm

Detectar Wine o linux en general

Mensaje por Xavi[1] »

Extraí­do de la página oficial de wine.-
How can I detect Wine?
Unless you are Microsoft trying to prevent your application from working, you really shouldn't want to do this. If there's a
quirk in Wine you need to work around, it's much better to fix it in Wine. More importantly, we might soon fix it ourselves, and
then your code will be mysteriously and permanently broken.
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. For the best way to do this, consult the wine-devel mailing list.
Se me plantea el problema de cómo detectar si la aplicación corre bajo wine o linux en general para forzar algunos parámetros.
La idea que barajo es advertir que para un uso optimizado del programa en wine se renombre antes el .exe a la extensión .wex por
ejemplo y esta extensión la detectarí­a la aplicación. Creo que es más simple que pasarle parámetros a la aplicación o crear
variables de entorno.
Qué opináis, alguna sugerencia?
Un saludo
Xavi
Responder