Skip to content

Instantly share code, notes, and snippets.

@dwalters-zz
Created November 18, 2009 14:34
Show Gist options
  • Save dwalters-zz/237896 to your computer and use it in GitHub Desktop.
Save dwalters-zz/237896 to your computer and use it in GitHub Desktop.
#!/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