summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2014-09-03 17:36:55 +0800
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-06 15:31:55 -0500
commit10143717834d8401d85fdf9564e782a58b9983ec (patch)
treeb494bb6b64e76d10108b6f667a44843d216bacb2 /desktop
parente7c5c58177e96635bc89679d191d9e9e2f16f8c6 (diff)
Make OOO_EXIT_POST_STARTUP behave more nicely when blank
Change-Id: I28bc8027908225d78c9543f3813d3bfe3818451d Reviewed-on: https://gerrit.libreoffice.org/11264 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 3f8cd6c7272f..256953040353 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1980,7 +1980,8 @@ IMPL_LINK_NOARG(Desktop, OpenClients_Impl)
CheckFirstRun( );
EnableOleAutomation();
- if (getenv ("OOO_EXIT_POST_STARTUP"))
+ const char *pExitPostStartup = getenv ("OOO_EXIT_POST_STARTUP");
+ if (pExitPostStartup && strlen (pExitPostStartup) > 0)
new ExitTimer();
} catch (const ::com::sun::star::uno::Exception &e) {
OUString a( "UNO exception during client open:\n" );