Abdelrazak Younes wrote:

> Georg Baum wrote:
>> Abdelrazak Younes wrote:
>> 
>>> OK. The fix is simple. As you know the Application instance is not
>>> created when the export command-line feature is requested. This patch
>>> fixes the crash and goes in soon.
>> 
>> So it is not possible to use the server in commandline mode? I am not
>> sure whether this is good.
> 
> Why would you want to use the server in command-line mode? Please don't
> mix command-line and console mode (as Lars correctly pointed out
> recently).

IIRC console mode was a hypothetical text frontend? With command line mode I
meant that LyX is started with a command line argument, either an explicit
command line option like export or an lfun (or lfun sequence).

> Command-line is for doing one or more tasks and then exit. 

Not necessarily exit. Why should I not be able to start up a server session
with a commandline flag that then waits for client connections and
terminates when told by the client?

> Right now the server depends on the frontend. If there is a need to have
> a LyX server that could work without a frontend (not even a console
> frontend) then that is another running mode, a server mode. I can
> provide this functionality if needed.

I don't think that from a logical PoV it makes sense to connect the server
to the frontend. The server is IMHO completely independant from the
frontend.

Others already pointed out that putting everything into a single global
variable might not always be the best solution. In this case it looks to me
like the connection of server and Application is artificial.


Georg

Reply via email to