summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-10-18 16:44:57 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-10-22 09:20:59 +0200
commit8959bb300b05be9fafbf30e553b35fb517bdf786 (patch)
tree6ec1d35740d628f713759ab5bf40770a2311a68b /desktop
parentf2c8180b7750e55807fe9d0e765e831ed2953c01 (diff)
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 <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/check_ext_deps.cxx9
1 files changed, 6 insertions, 3 deletions
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);
}
}