Created
January 2, 2014 03:03
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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