We have an application that can be run in a command line or GUI mode,
depending on the parameters passed in at startup.
The command line processing is done before creating the display and the
However, when running in command line mode, the application still tries to
connect to the display.
Any idea what could be causing this and if there is any options turn that