Chrome Flags Reference

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

--app-run-on-os-login-mode

What does --app-run-on-os-login-mode do?

This is used along with kAppId to indicate an app was launched during OS login, and which mode the app was launched in.

Usage

CLILaunch Chrome with --app-run-on-os-login-mode using CLI

chrome --app-run-on-os-login-mode

PuppeteerLaunch Chrome with --app-run-on-os-login-mode using Puppeteer

const browser = await puppeteer.launch({
  args: ['--app-run-on-os-login-mode']
});

PlaywrightLaunch Chrome with --app-run-on-os-login-mode using Playwright

const browser = await chromium.launch({
  args: ['--app-run-on-os-login-mode']
});

SeleniumLaunch Chrome with --app-run-on-os-login-mode using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--app-run-on-os-login-mode')

driver = webdriver.Chrome(options=options)