Skip to content

Commit

Permalink
Add --no-sandbox argument to launch Chrome when running as root
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Oct 28, 2024
1 parent 4b72b1f commit c4fe792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/browser/browsers/chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export class ChromeBrowser extends Browser {

private async puppeteerArgsEnableSandbox() {
if (process.env.CHROME_NO_SANDBOX) return false
if (process.getuid?.() === 0) return false // Running as root without --no-sandbox is not supported.
if (isInsideContainer()) return false
if (await isWSL()) return false

Expand Down

0 comments on commit c4fe792

Please sign in to comment.