Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Enable extensions in Chromium (or Chrome)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Enable extensions in Chromium (or Chrome)
Authored by: LimitlessX72 on Feb 14, '10 10:27:24AM

[code]
#!/bin/sh
# Patches the Google Chrome application installation with command line arguments to enable extensions.
set -o errexit
app=${1:-/Applications/Google\ Chrome.app}
cat >$app/Contents/MacOS/Chrome.wrapper <<EOF
#!/bin/sh
exec $app/Contents/MacOS/Google\ Chrome --enable-extensions "\$@"
EOF
chmod 755 $app/Contents/MacOS/Chrome.wrapper
defaults write $app/Contents/Info CFBundleExecutable Chrome.wrapper
[/code]

to get this working correctly under google chrome use this code and place it as a text file in the shared /Users/Shared/ folder with Smultron

now set it as executable, I used batchmod for this, and using batchmod again check that the ownership of google chrome app is set to an admin

As I use a separate account for admin duties (as everyone should do) so unless your logged in as such, go to step one. if you are, go to step 3

1. login "adminname" enter
2. password enter
3. drag the script file into the window. enter

job done. I would keep this here for convenience as future updates will overwrite the changes it has made. As an added bonus if you want to add more flags in the future, open the chrome.wrapper in the google chrome/contents/mac os/ folder in smultron add the flags, save and authenticate.



[ Reply to This | # ]
Enable extensions in Chromium (or Chrome)
Authored by: LimitlessX72 on Feb 18, '10 04:41:57AM

this is broken as of 5.0.307.9 beta I have no idea why it isn't working as the flags still work if used via terminal



[ Reply to This | # ]