Georg Baum wrote:
Abdelrazak Younes wrote:
OK, the problem is that BufferList was created in Application which is
created only in GUI mode. I wanted to create a "console mode" frontend
to cope with this and with all the lyx::use_gui test but I don't have
the time right now.
While such a frontend would be nice e.g. for batch processing on a machine
that does not have an X server it will not be possible to remove the
lyx::use_gui test, at least not if the GUI version should still be able to
process batch commands.
Why is that?
The batch command processing is done in LyXFunc and it does not need
this use_gui boolean.
There surely is a misunderstanding here. My goal is to remove the use of
lyx::use_gui inside the (qt4) frontend where it is just not needed
because we are obviously using a GUI.
But I maybe see the need for an "Application::useGui()" that will return
true for GuiApplication and false for some future ConsoleApplication.
The latter is IMHO a very important fetaure that
should not be killed for cosmetic reasons.
Of course not.
Abdel.