Chrome Flags Reference

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

--source-shortcut

What does --source-shortcut do?

When rendezvousing with an existing process, used to pass the path of the shortcut that launched the new Chrome process. This is used to record launch metrics.

Usage

CLILaunch Chrome with --source-shortcut using CLI

chrome --source-shortcut

PuppeteerLaunch Chrome with --source-shortcut using Puppeteer

const browser = await puppeteer.launch({
  args: ['--source-shortcut']
});

PlaywrightLaunch Chrome with --source-shortcut using Playwright

const browser = await chromium.launch({
  args: ['--source-shortcut']
});

SeleniumLaunch Chrome with --source-shortcut using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--source-shortcut')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MACWIN