A no GUI version of wxWidgets?

Tom Horsley tomhorsley at comcast.net
Sun Feb 10 12:18:06 PST 2008


On Sun, 10 Feb 2008 13:41:17 +0100, Vadim Zeitlin wrote:

>  If you want an application to run both in GUI mode and without GUI you
> need to simply avoid initializing the GUI part at run-time.

Good theory, but it doesn't seem to work in truecrypt. Any attempt
to run the app with no DISPLAY set dies immediately with gtk
complaining you don't have a DISPLAY.

There is code in truecrypt which certainly attempts to not initialize
the GUI. I suspect some sort of "helpful" shared lib initialization
code in gtk (or maybe truecrypt doesn't actually do the right
stuff to avoid GUI init).

Anyway, I almost have a patch put together for building a true
text mode only truecrypt with enough #if wxUSE_GUI == 1 code
inserted to let the text only parts build by themselves.






More information about the wx-users mailing list