Chrome Flags Reference

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

--unique-temp-dir-suffix

What does --unique-temp-dir-suffix do?

When switches::kProcessType is switches::kCodeSignCloneCleanupProcess this switch is required. The value must be the unique suffix portion of the temporary directory that contains the clone. The full path will be reconstructed by the cleanup process.

Usage

CLILaunch Chrome with --unique-temp-dir-suffix using CLI

chrome --unique-temp-dir-suffix

PuppeteerLaunch Chrome with --unique-temp-dir-suffix using Puppeteer

const browser = await puppeteer.launch({
  args: ['--unique-temp-dir-suffix']
});

PlaywrightLaunch Chrome with --unique-temp-dir-suffix using Playwright

const browser = await chromium.launch({
  args: ['--unique-temp-dir-suffix']
});

SeleniumLaunch Chrome with --unique-temp-dir-suffix using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--unique-temp-dir-suffix')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MAC