Support setting working directory of child process

This commit is contained in:
Kevin Sawicki
2013-02-11 14:53:09 -08:00
parent 2dcf607e12
commit e952a68c96
2 changed files with 20 additions and 0 deletions

View File

@@ -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;