Skip to content

Instantly share code, notes, and snippets.

@sit
Created January 2, 2014 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sit/8214383 to your computer and use it in GitHub Desktop.
Save sit/8214383 to your computer and use it in GitHub Desktop.
Wrapper script to always use a secure user dir for Google Chrome. I find this useful for protecting private caches on a work computer.
#!/bin/sh
#
# Mount a truecrypt volume on /media/truecrypt1
USER_DATA_DIR=/media/truecrypt1/Chrome/$USER
if [ ! -d $USER_DATA_DIR ]; then
echo No secure data directory $USER_DATA_DIR 1>&2
exit 1;
fi
EXTRA_CHROME_ARGS="--enable-webgl --ignore-gpu-blacklist"
exec google-chrome $EXTRA_CHROME_ARGS --user-data-dir=$USER_DATA_DIR "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment