mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Support setting working directory of child process
This commit is contained in:
@@ -485,6 +485,11 @@ namespace v8_extensions {
|
||||
};
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> currentWorkingDirectory = options->GetValue("cwd");
|
||||
if (!currentWorkingDirectory->IsUndefined() && !currentWorkingDirectory->IsNull()) {
|
||||
[task setCurrentDirectoryPath:stringFromCefV8Value(currentWorkingDirectory)];
|
||||
}
|
||||
|
||||
[task launch];
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user