diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-18 16:44:57 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-18 17:27:32 +0200 |
commit | 08479f6e23d49411a501f5d47df6a4f09c7306cf (patch) | |
tree | 8361edf0d0516e155ee12ec31aece906fb85483f | |
parent | 042e7b5eb9cc18a0089ae01f04786ed616a4d5ec (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
(cherry picked from commit 44ead855a3df5a0f4f383d8b8d26794686c50119)
-rw-r--r-- | desktop/source/app/check_ext_deps.cxx | 9 |
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 ad5d077c6d33..6884c3ffd2dc 100644 --- a/desktop/source/app/check_ext_deps.cxx +++ b/desktop/source/app/check_ext_deps.cxx @@ -428,9 +428,12 @@ void Desktop::SynchronizeExtensionRepositories() 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); } } |