From 7679348614906dd1a7e366af1da63e9ced6c49ef Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 13 Aug 2023 14:55:00 +0100 Subject: [PATCH] Added running as root warning --- src/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Application.cpp b/src/Application.cpp index 15ddd7ea..360baaf0 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -63,6 +63,10 @@ namespace Bloom 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 Logger::warning("This is a debug build - some functions may not work as expected"); #endif