Implement Relaunch on Linux
This commit is contained in:
parent
c3fe2dae9d
commit
a3f39e9d0b
7 changed files with 104 additions and 12 deletions
|
@ -158,6 +158,7 @@ int AtomMainDelegate::RunProcess(
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
bool AtomMainDelegate::ShouldSendMachPort(const std::string& process_type) {
|
||||
return process_type != kRelauncherProcess;
|
||||
}
|
||||
|
@ -166,6 +167,7 @@ bool AtomMainDelegate::DelaySandboxInitialization(
|
|||
const std::string& process_type) {
|
||||
return process_type == kRelauncherProcess;
|
||||
}
|
||||
#endif
|
||||
|
||||
std::unique_ptr<brightray::ContentClient>
|
||||
AtomMainDelegate::CreateContentClient() {
|
||||
|
|
|
@ -27,8 +27,10 @@ class AtomMainDelegate : public brightray::MainDelegate {
|
|||
int RunProcess(
|
||||
const std::string& process_type,
|
||||
const content::MainFunctionParams& main_function_params) override;
|
||||
#if defined(OS_MACOSX)
|
||||
bool ShouldSendMachPort(const std::string& process_type) override;
|
||||
bool DelaySandboxInitialization(const std::string& process_type) override;
|
||||
#endif
|
||||
|
||||
// brightray::MainDelegate:
|
||||
std::unique_ptr<brightray::ContentClient> CreateContentClient() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue