Added running as root warning

This commit is contained in:
Nav
2023-08-13 14:55:00 +01:00
parent bc4939e48f
commit 7679348614

View File

@@ -63,6 +63,10 @@ namespace Bloom
this->selectedEnvironmentName = std::move(firstArg); this->selectedEnvironmentName = std::move(firstArg);
} }
if (Services::ProcessService::isRunningAsRoot()) {
Logger::warning("Please don't run Bloom as root - you're asking for trouble.");
}
#ifdef BLOOM_DEBUG_BUILD #ifdef BLOOM_DEBUG_BUILD
Logger::warning("This is a debug build - some functions may not work as expected"); Logger::warning("This is a debug build - some functions may not work as expected");
#endif #endif