Sunday, October 7, 2012

Google Chrome: problem update plugin Adobe Flash Player

I updated Google Chrome plugin for mac OS X leopard but it continued saying that flash plugin was not updated every time..even a restart not helps

one solution is execute the following command

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-outdated-plugins

to avoid to update plugins when the old ones still work.

there are two ways to create an application that launches Chrome with the command line arguments, avoiding to type the command every time


1. Using AUTOMATOR



Start Automator and select to create an Application. Double-click Run Shell Script in the Library/Utilities folder (second column) and replace the text content — cat — with the following:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-outdated-plugins
Save anywhere you like.
To replace this application's icon, Get Info on your real Google Chrome, click on the icon on the top left, press Cmd-CGet Info on your Chrome Automator app, click the icon, and press Cmd-V.
Since it's a different application, the Dock will display two Chrome applications when it's running: Chrome, and your Chrome launcher.
2. Edit your application bundle to launch a script instead. This script will start the actual application, adding the command line argument.
Right-click Google Chrome.app and select Show Package Contents. Go to Contents/ and openInfo.plist
Look for the entry CFBundleExecutabl. Remember its value (e.g.Google Chrome). Replace it with YOUR_APPLICATION.sh.
Open Terminal and enter the following:
touch /Applications/Google Chrome.app/Contents/MacOS/YOUR_APPLICATION.sh

open /Applications/Google Chrome.app/Contents/MacOS/YOUR_APPLICATION.sh


An editor for the .sh file will open. Set the contents of the file to:

#!/bin/bash
exec /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-outdated-plugins

Save and close. In Terminal, enter the following:

chmod +x 
/Applications/Google Chrome.app/Contents/MacOS/YOUR_APPLICATION.sh


Now, close Terminal and move your application (close it before doing that!) to a different folder and back again. This will update Launch Services.

Now, when you open your application, it will actually execute the .sh file, which will in turn launch the actual executable file, sending the command line args along.
It will look and behave like you expect it to, but you will need to repeat this whenever you update your application, as this will generally replace the application bundle and all the changes you made.
No problem for Google Chrome in Leopard OS. It won't be supported anymore!

No comments:

Post a Comment