Detectar Wine o linux en general
Publicado: Vie Sep 21, 2007 5:05 pm
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
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