This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch AOO50X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 35e60117af8cb100cc66346013600830bb41c9d3
Author: Jim Jagielski <[email protected]>
AuthorDate: Thu Oct 22 08:14:45 2026 -0400

    Skip the first-start wizard in headless mode
    
    Headless mode cancels every dialog, so the wizard ended the office silently 
on every start.
    
    (cherry picked from commit ba0201429312936c43cd0b8fae745f1e3fb580fd)
---
 main/desktop/source/app/app.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/desktop/source/app/app.cxx b/main/desktop/source/app/app.cxx
index 4368ea1426..21ddd44770 100644
--- a/main/desktop/source/app/app.cxx
+++ b/main/desktop/source/app/app.cxx
@@ -2007,8 +2007,8 @@ void Desktop::Main()
                // check whether the shutdown is caused by restart
                pExecGlobals->bRestartRequested = ( xRestartManager.is() && 
xRestartManager->isRestartRequested( sal_True ) );
 
-        // First Start Wizard allowed ?
-        if ( ! pCmdLineArgs->IsNoFirstStartWizard() && 
!pExecGlobals->bRestartRequested )
+        // First Start Wizard allowed ? Headless mode cancels every dialog, so 
the wizard would end the office.
+        if ( ! pCmdLineArgs->IsNoFirstStartWizard() && ! 
pCmdLineArgs->IsHeadless() && !pExecGlobals->bRestartRequested )
         {
             RTL_LOGFILE_CONTEXT_TRACE( aLog, "{ FirstStartWizard" );
 

Reply via email to