Skip to content

Instantly share code, notes, and snippets.

@xcsrz
Created March 28, 2019 18:54
Show Gist options
  • Save xcsrz/0865dec1304dfadc9c0beeee704a4e53 to your computer and use it in GitHub Desktop.
Save xcsrz/0865dec1304dfadc9c0beeee704a4e53 to your computer and use it in GitHub Desktop.
Run chrome completely separate from the standard as though it has never been run before on that computer, but skip the welcome wizard stuff.
#!/bin/bash
app="/Applications/Google Chrome.app"
dir=$(mktemp -d)
# echo $dir
touch "${dir}/First Run"
mkdir "${dir}/Default"
echo '{"browser":{"has_seen_welcome_page":true}}' > "${dir}/Default/Preferences"
exec "${app}/Contents/MacOS/Google Chrome" --bwsi --disable-signin-promo --bypass-app-banner-engagement-checks --no-managed-user-acknowledgment-check -no-first-run --user-data-dir=${dir} --system-developer-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment