diff --git a/main.go b/main.go index a5188db..3951331 100644 --- a/main.go +++ b/main.go @@ -15,6 +15,7 @@ import ( "os/signal" "path/filepath" "strconv" + "runtime" "strings" "syscall" "time" @@ -377,11 +378,16 @@ func cmdStart(args []string) { l := launcher.New(). Set("no-sandbox"). Set("disable-gpu"). - Set("single-process"). // Required for screenshots in gVisor/container environments Leakless(false). // Keep Chrome alive after CLI exits UserDataDir(dataDir). Headless(headless) + // single-process is required for screenshots in gVisor/container environments + // but crashes Chromium on complex sites on macOS + if runtime.GOOS != "darwin" { + l = l.Set("single-process") + } + // When in non-headless mode, make sure that we show the startup window immediately // (instead of showing a window only after calling "rodney open") if !headless {