diff options
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/check_ext_deps.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/source/app/check_ext_deps.cxx b/desktop/source/app/check_ext_deps.cxx index ad2d72b07183..2ddbf043a526 100644 --- a/desktop/source/app/check_ext_deps.cxx +++ b/desktop/source/app/check_ext_deps.cxx @@ -422,8 +422,10 @@ void Desktop::SynchronizeExtensionRepositories() deployment::ExtensionManager::get(context)->reinstallDeployedExtensions( true, "user", Reference<task::XAbortChannel>(), silent); #if !HAVE_FEATURE_MACOSX_SANDBOX - task::OfficeRestartManager::get(context)->requestRestart( - silent->getInteractionHandler()); + // getenv is a hack to detect if we're running in a LOK unit test + if (!getenv("LOK_TEST")) + task::OfficeRestartManager::get(context)->requestRestart( + silent->getInteractionHandler()); #endif } else { // reinstallDeployedExtensions above already calls syncRepositories |