diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc index 87b9d30bfc..abd4b0aedc 100644 --- a/atom/app/atom_main_delegate.cc +++ b/atom/app/atom_main_delegate.cc @@ -125,6 +125,15 @@ void AtomMainDelegate::PreSandboxStartup() { #endif } +#if defined(OS_LINUX) +// renderer is started by the zygote process on linux +// this may or may not work correctly when the with +// the linux sandbox enabled +void AtomMainDelegate::ZygoteForked() { + AtomRendererClient::PreSandboxStartup(); +} +#endif + content::ContentBrowserClient* AtomMainDelegate::CreateContentBrowserClient() { browser_client_.reset(new AtomBrowserClient); return browser_client_.get(); diff --git a/atom/app/atom_main_delegate.h b/atom/app/atom_main_delegate.h index 5f4369302f..b0c5e80eb4 100644 --- a/atom/app/atom_main_delegate.h +++ b/atom/app/atom_main_delegate.h @@ -28,6 +28,8 @@ class AtomMainDelegate : public brightray::MainDelegate { #if defined(OS_MACOSX) void OverrideChildProcessPath() override; void OverrideFrameworkBundlePath() override; +#elif defined(OS_LINUX) + void ZygoteForked() override; #endif private: