Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--gpu-sandbox-allow-sysv-shm

What does --gpu-sandbox-allow-sysv-shm do?

Allows shmat() system call in the GPU sandbox.

Usage

CLILaunch Chrome with --gpu-sandbox-allow-sysv-shm using CLI

chrome --gpu-sandbox-allow-sysv-shm

PuppeteerLaunch Chrome with --gpu-sandbox-allow-sysv-shm using Puppeteer

const browser = await puppeteer.launch({
  args: ['--gpu-sandbox-allow-sysv-shm']
});

PlaywrightLaunch Chrome with --gpu-sandbox-allow-sysv-shm using Playwright

const browser = await chromium.launch({
  args: ['--gpu-sandbox-allow-sysv-shm']
});

SeleniumLaunch Chrome with --gpu-sandbox-allow-sysv-shm using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--gpu-sandbox-allow-sysv-shm')

driver = webdriver.Chrome(options=options)