Created
November 18, 2009 14:34
-
-
Save dwalters-zz/237896 to your computer and use it in GitHub Desktop.
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 | |
# Patches the Chromium application installation with command line arguments to enable extensions. | |
set -o errexit | |
app=${1:-/Applications/Chromium.app} | |
cat >$app/Contents/MacOS/Chromium.wrapper <<EOF | |
#!/bin/sh | |
exec $app/Contents/MacOS/Chromium --enable-extensions --enable-user-scripts --enable-sync "\$@" | |
EOF | |
chmod 755 $app/Contents/MacOS/Chromium.wrapper | |
defaults write $app/Contents/Info CFBundleExecutable Chromium.wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment