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.