Kaydet (Commit) 8959bb30 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

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: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst f2c8180b
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment