by low_key · 6y ago · 0 comments
chrome_dir=$(mktemp -d)
echo "Using temp dir: $chrome_dir"
/usr/bin/google-chrome \
--incognito \
--user-data-dir="$chrome_dir" \
--window-size=1280,1280 \
--no-referrers \
--no-pings \
--no-experiments \
--disable-translate \
--dns-prefetch-disable \
--disable-background-mode \
--no-first-run \
--no-default-browser-check
wait $!
rm -rf "$chrome_dir"That's a good point but an incredibly lazy comment. I think the possible failure of 'mktemp' could be protected against by using 'set -e' at the start of the script.
I think --incognito makes no difference if you throw away the data dir anyhow.