summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-24 17:41:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-25 07:04:32 +0000
commitb9825c0841dd7ef79c6615f35c33b04bc9d1ef29 (patch)
tree92174d7426379b50583266a6be3e86ed4ae51b1a
parentfix crash when updating conditional formats, fdo#54498 (diff)
downloadcore-b9825c0841dd7ef79c6615f35c33b04bc9d1ef29.tar.gz
core-b9825c0841dd7ef79c6615f35c33b04bc9d1ef29.zip
fdo#54385: Displaying help/version early on UNX requires service manager
This regression was introduced with 6c6358a6822d3562b9b8c7668a7d60d6c644dfe8 "Related fdo#53006: Do not instantiate service manager too early." (cherry picked from commit 2f14e2e67c58fe6948501d57a38cd0d2ad84dfff) (cherry picked from commit 7b33d564bc0079e5d8309e4b5081b1d44e1efd12) Conflicts: desktop/inc/app.hxx desktop/source/app/app.cxx desktop/source/app/appinit.cxx desktop/source/app/sofficemain.cxx (with ensureProcessServiceManager still available in libreoffice-3-6-2, this cherry-pick shrinks up dramatically) Change-Id: If22ea3ac6474188bf0792246620e5c705a813445 Reviewed-on: https://gerrit.libreoffice.org/695 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: David Tardon <dave.tardon@gmail.com> Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rwxr-xr-xdesktop/source/app/sofficemain.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx
index a0fba044922e..a9501eda85ee 100755
--- a/desktop/source/app/sofficemain.cxx
+++ b/desktop/source/app/sofficemain.cxx
@@ -69,11 +69,13 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main()
const desktop::CommandLineArgs& rCmdLineArgs = aDesktop.GetCommandLineArgs();
if ( rCmdLineArgs.IsHelp() )
{
+ desktop::Desktop::ensureProcessServiceFactory();
desktop::displayCmdlineHelp();
return EXIT_SUCCESS;
}
else if ( rCmdLineArgs.IsVersion() )
{
+ desktop::Desktop::ensureProcessServiceFactory();
desktop::displayVersion();
return EXIT_SUCCESS;
}