diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index eb48be03baaa..6b29f92fd4eb 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -556,6 +556,15 @@ void Desktop::Init() SetBootstrapError( BE_UNO_SERVICEMANAGER, e.Message ); } + // When we are in SafeMode we need to do changes before the configuration + // gets read (langselect::prepareLocale() by UNO API -> Components::Components) + const CommandLineArgs& rArgs = GetCommandLineArgs(); + const bool bSafeMode(rArgs.IsSafeMode() || sfx2::SafeMode::hasFlag()); + + // this may prepare SafeMode or restore from it by moving data in + // the UserConfiguration directory + comphelper::BackupFileHelper::reactOnSafeMode(bSafeMode); + if ( m_aBootstrapError == BE_OK ) { try |