core: add disable env vars for file watcher and crash handler

This commit is contained in:
outfoxxed 2026-03-13 01:10:09 -07:00
parent 178c04b59c
commit e32b909354
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
3 changed files with 9 additions and 3 deletions

View file

@ -138,9 +138,11 @@ int launch(const LaunchArgs& args, char** argv, QCoreApplication* coreApplicatio
};
#if CRASH_HANDLER
crash::CrashHandler::init();
if (qEnvironmentVariableIsSet("QS_DISABLE_CRASH_HANDLER")) {
qInfo() << "Crash handling disabled.";
} else {
crash::CrashHandler::init();
{
auto* log = LogManager::instance();
crash::CrashHandler::setRelaunchInfo({
.instance = InstanceInfo::CURRENT,