Just a few clues I’ve found about running the same binary without a GUI:
-
GTK supports running a program without display:
http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. This
doesn’t tell if it’s possible in wxWidgets though. -
wxAppConsole of wx 2.9 might be useful somehow. Just replacing
wxApp with wxAppConsole doesn’t work, I’m not sure how it should be
used. It’s not very well documented. -
Another option might be to use IMPLEMENT_APP_NO_MAIN() and make our
own main method.