Ekkehard Morgenstern ekkehard.morgenstern@onlinehome.de writes:
This patch is akin to the previously posted; however, instead of making the user backend the default, I read an environment variable WINECONBACKEND to determine the default.
I don't think that's an improvement, please let's not add more obscure environment variables. You should try to use the user backend when the X display is available and fall back to curses otherwise.
Alexandre Julliard wrote:
I don't think that's an improvement, please let's not add more obscure environment variables. You should try to use the user backend when the X display is available and fall back to curses otherwise.
How should I check if the X Display is available?
The DISPLAY environment variable doesn't suffice for that. It might be set, but the connection might be unavailable anyway. Or some user that doesn't have X Windows might use the DISPLAY variable for something else. Not a good idea IMO.
Ekkehard Morgenstern ekkehard.morgenstern@onlinehome.de writes:
How should I check if the X Display is available?
Try to create the console window, it should fail if X is not available.
Alexandre Julliard wrote:
Try to create the console window, it should fail if X is not available.
Well, I'll look into that when I find time.