<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Also, I will probably get rid of the ConsoleOnly thing, and instead call EnableHeadlessMode() in gengal and test IsHeadlessModeEnabled in SVMain(). (This will affect only OS X, as it is only on OS X that ImplSVMainHook() can return true.)</div></div></div></div></blockquote><div><br></div><div>On the other hand, it *is* documented in svapp.hxx what ConsoleOnly mode means, and it is in fact orthogonal to headlessness. ("Used to disable Mac specific app init that requires an app bundle.") So using this in gengal (which indeed is not a program in an app bundle; only soffice is) makes sense.</div><div><br></div><div>On the other hand, the change I did yesterday to check IsConsoleOnly() in OfficeIPCThread::EnableOfficeIPCThread() and OfficeIPCThread::execute() probably was wrong. That has nothing to do with whether the code is executing in an app bundle or not. Probably what I should be checking there is IsHeadlessModeEnabled().</div><div><br></div><div>Also the check for IsConsoleOnly() in OpenGLHelper::isVCLOpenGLEnabled() is probably not right, because whether OpenGL can be used or not has little do do with whether running in app bundle or not. Probably IsHeadlessModeEnabled() is the right thing to call there, too.</div><div><br></div><div>--tml</div></div></div></div>