--- electron/shell/app/electron_main_delegate.cc.orig 2021-04-20 23:32:33 UTC +++ electron/shell/app/electron_main_delegate.cc @@ -246,7 +246,7 @@ bool ElectronMainDelegate::BasicStartupComplete(int* e base::win::PinUser32(); #endif -#if defined(OS_LINUX) +#if defined(OS_LINUX) || defined(OS_BSD) // Check for --no-sandbox parameter when running as root. if (getuid() == 0 && IsSandboxEnabled(command_line)) LOG(FATAL) << "Running as root without --" @@ -310,7 +310,7 @@ void ElectronMainDelegate::PreSandboxStartup() { } #endif -#if !defined(MAS_BUILD) +#if !defined(MAS_BUILD) && !defined(OS_BSD) crash_keys::SetCrashKeysFromCommandLine(*command_line); crash_keys::SetPlatformCrashKey(); #endif