parent
5bf6a0e59d
commit
e57a331e5c
|
@ -140,7 +140,7 @@ func (r *Runner) Start(ctxt context.Context) error {
|
|||
_, ok = r.opts["user-data-dir"]
|
||||
if !ok {
|
||||
r.opts["user-data-dir"], err = ioutil.TempDir(
|
||||
DefaultUserDataTmpDir, fmt.Sprintf(DefaultUserDataDirPrefix, r.Port()),
|
||||
defaultUserDataTmpDir, fmt.Sprintf(DefaultUserDataDirPrefix, r.Port()),
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"syscall"
|
||||
)
|
||||
|
||||
const (
|
||||
var (
|
||||
// DefaultUserDataTmpDir is the default directory path for created user
|
||||
// data directories.
|
||||
DefaultUserDataTmpDir = "/tmp"
|
||||
defaultUserDataTmpDir = "/tmp"
|
||||
)
|
||||
|
||||
// KillProcessGroup is a Chrome command line option that will instruct the
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
package runner
|
||||
|
||||
const (
|
||||
DefaultUserDataTmpDir = `c:\temp`
|
||||
import "os"
|
||||
|
||||
var (
|
||||
defaultUserDataTmpDir = os.Getenv("USERPROFILE") + `\AppData\Local`
|
||||
)
|
||||
|
||||
// KillProcessGroup is a Chrome command line option that will instruct the
|
||||
|
|
Loading…
Reference in New Issue
Block a user