How To Enable Chrome Web Store Applications on Mac OS X

in Technology

The new Chrome Web Store will be based on web applications. Applications can already be installed now by using a developer build of Chrome and starting it with the --enable-apps option.

On Windows the --enable-apps option can be added to the start menu shortcut of Chrome. On Mac OS X, you need to create a small shell script inside the Chrome bundle:

  • Open Terminal and go to /Applications/Google Chrome.app/Contents/MacOS
  • Rename "Google Chrome" (the binary) to "Google Chrome.bin"
  • Create a new text file called "Google Chrome" with the following contents:

#!/bin/sh
exec "$0.bin" --enable-apps $@

  • Make it executable with chmod 755 "Google Chrome"

Note that the same principle can be used to add command line options to any Mac OS X application. You may have to do this again after Chrome has been updated.

Now you can play with it and install the Hacker News application or my own kfalck.net application. They basically just add web shortcuts to Chrome's application menu. You can view the menu by pressing Command-T (or Ctrl-T on Windows/Linux).

1 Comments
Ivans Nozdracevs 8.7.2010 23:51:49

Thank you for a short and comprehensive post.

I have followed your instructions (although I could not rename the original file to .bin using the Finder - the system responded, that I do not have the permission to do it, though I have the administrator permission on this particular computer, non the less I have found the way around the system to rename the file). Also I could not make the Google Chrome file (which I have created in .txt format) executable. Could you please help me with this? I should mention, that I am new to Unix.

I shall highly appreciate your help.


You can use Markdown to format your comment:

  • > quoted text
  • *italic* text
  • **bold** text
  • `code block` (multi-line is ok, whitespace is preserved)
  • [link text](http://www.google.com "link title")

Separate paragraphs in your text with two newlines