From 8959bb300b05be9fafbf30e553b35fb517bdf786 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Thu, 18 Oct 2018 16:44:57 +0200 Subject: Sync extension registration on startup There are cases where the extension registration becomes invalid (empty rdb files) which leads to extensions not starting up, although installed and active. Syncing extension repos on startup fixes that. The performance impact is negligible (1ms in my measurements). Change-Id: I10475ce6a054b43c4591b17a8486648ca6a30068 Reviewed-on: https://gerrit.libreoffice.org/61943 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- desktop/source/app/check_ext_deps.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/check_ext_deps.cxx b/desktop/source/app/check_ext_deps.cxx index 3a59f5cfd854..d241db250a00 100644 --- a/desktop/source/app/check_ext_deps.cxx +++ b/desktop/source/app/check_ext_deps.cxx @@ -426,9 +426,12 @@ void Desktop::SynchronizeExtensionRepositories(bool bCleanedExtensionCache, Desk silent->getInteractionHandler()); #endif } else { - // reinstallDeployedExtensions above already calls syncRepositories - // internally: - dp_misc::syncRepositories(false, silent); + // reinstallDeployedExtensions above already calls syncRepositories internally + + // Force syncing repositories on startup. There are cases where the extension + // registration becomes invalid which leads to extensions not starting up, although + // installed and active. Syncing extension repos on startup fixes that. + dp_misc::syncRepositories(/*force=*/true, silent); } } -- cgit