From 0a4d780413c817363b97cdf0f0f0451bf9790f7d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 29 Sep 2014 18:12:24 +0300 Subject: No extension cache to clean unless HAVE_FEATURE_EXTENSIONS Change-Id: Id19a93b0b428849a3590e2e28e081154c443e949 --- desktop/source/app/app.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'desktop/source') diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 6a59eee1f002..da0d92730423 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -161,6 +161,8 @@ static oslSignalHandler pSignalHandler = 0; namespace { +#if HAVE_FEATURE_EXTENSIONS + void removeTree(OUString const & url) { osl::Directory dir(url); osl::FileBase::RC rc = dir.open(); @@ -320,6 +322,8 @@ bool cleanExtensionCache() { return true; } +#endif + bool shouldLaunchQuickstart() { bool bQuickstart = Desktop::GetCommandLineArgs().IsQuickstart(); @@ -587,7 +591,9 @@ void Desktop::Init() SAL_INFO( "desktop.app", "desktop (cd100003) ::Desktop::Init" ); SetBootstrapStatus(BS_OK); +#if HAVE_FEATURE_EXTENSIONS m_bCleanedExtensionCache = cleanExtensionCache(); +#endif // We need to have service factory before going further, but see fdo#37195. // Doing this will mmap common.rdb, making it not overwritable on windows, -- cgit