Chrome Flags Reference

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

--use-system-default-printer

What does --use-system-default-printer do?

Uses the system default printer as the initially selected destination in print preview, instead of the most recently used destination.

Usage

CLILaunch Chrome with --use-system-default-printer using CLI

chrome --use-system-default-printer

PuppeteerLaunch Chrome with --use-system-default-printer using Puppeteer

const browser = await puppeteer.launch({
  args: ['--use-system-default-printer']
});

PlaywrightLaunch Chrome with --use-system-default-printer using Playwright

const browser = await chromium.launch({
  args: ['--use-system-default-printer']
});

SeleniumLaunch Chrome with --use-system-default-printer using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--use-system-default-printer')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MACWIN!CHROMEOS && !IS_ANDROID