Pass app path as command line argument
This commit is contained in:
parent
9cb6bc098d
commit
4a7eec8f2d
7 changed files with 31 additions and 7 deletions
|
@ -234,6 +234,12 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
|||
}
|
||||
#endif
|
||||
|
||||
if (delegate_) {
|
||||
auto app_path = static_cast<api::App*>(delegate_)->GetAppPath();
|
||||
command_line->AppendSwitchASCII(switches::kAppPath,
|
||||
app_path);
|
||||
}
|
||||
|
||||
content::WebContents* web_contents = GetWebContentsFromProcessID(process_id);
|
||||
if (!web_contents)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue