Chrome Flags Reference

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

--gpu2-startup-dialog

What does --gpu2-startup-dialog do?

Causes the second GPU process used for gpu info collection to display a dialog on launch.

Usage

CLILaunch Chrome with --gpu2-startup-dialog using CLI

chrome --gpu2-startup-dialog

PuppeteerLaunch Chrome with --gpu2-startup-dialog using Puppeteer

const browser = await puppeteer.launch({
  args: ['--gpu2-startup-dialog']
});

PlaywrightLaunch Chrome with --gpu2-startup-dialog using Playwright

const browser = await chromium.launch({
  args: ['--gpu2-startup-dialog']
});

SeleniumLaunch Chrome with --gpu2-startup-dialog using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--gpu2-startup-dialog')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISKANDROIDWIN