App: Fix safe mode and home directory

This commit is contained in:
Chris Hennes
2025-09-02 10:48:54 -05:00
committed by Benjamin Nauck
parent 09b97e0bfd
commit 62ec6f773c
3 changed files with 45 additions and 4 deletions

View File

@@ -2569,13 +2569,13 @@ void Application::initConfig(int argc, char ** argv)
mConfig["KeepDeprecatedPaths"] = "1";
}
if (vm.contains("safe-mode")) {
mConfig["SafeMode"] = "1";
}
// extract home paths
_appDirs = std::make_unique<ApplicationDirectories>(mConfig);
if (vm.contains("safe-mode")) {
SafeMode::StartSafeMode();
}
# ifdef FC_DEBUG
mConfig["Debug"] = "1";
# else