Macos – Mac OSX: start Google Chrome in kiosk mode – error

google-chromekioskmacmacos

I am trying to load Google Chrome in kiosk mode on OSX using the answer that was given here Start Google Chrome on Mac with command line switches

But, when I run it from the terminal, it spits out a bunch of text and then opens up Google Chrome normally and not in kiosk mode. Any ideas?

Here is the text it pops up when it starts:

objc[46671]: Class WorkerPoolObjC is
implemented in both
/Applications/Google
Chrome.app/Contents/Versions/7.0.517.44/Google
Chrome
Helper.app/Contents/MacOS/../../../Google
Chrome Framework.framework/Google
Chrome Framework and
/Applications/Google
Chrome.app/Contents/Versions/7.0.517.44/Google
Chrome Framework.framework/Internet
Plug-Ins/PDF.plugin/Contents/MacOS/PDF.
One of the two will be used. Which one
is undefined.

Best Answer

The messages you see are not an error. A framework is included twice in the bundle (once for Chrome, once for Chrome helper), and it tells you.

I tested the --kiosk and -kiosk arguments with both current Chrome and a build of Chromium from today and it never worked as written in the other thread.

I successfully passed --incognito as parameter, so if it were implemented, it would work this way.

Since the page you link to is the only information I could find on Chrome for Mac kiosk mode, I'd guess it's not yet implemented. If you read the comments over there, Andrew (the person answering) didn't test it himself, he queried the person asking for the name of the binary and perhaps just posted that and the windows command line parameter.


To start Chromium in full screen, write out the following AppleScript in AppleScript Editor:

tell application "Chromium"
    activate
    tell application "System Events"
        key down {command}
        key down {shift}
        keystroke "f"
        key up {shift}
        key up {command}
    end tell
end tell

If you use Chrome, replace "Chromium" with "Google Chrome".

Executing this script first starts Chromium, and then immediately enters full screen mode.

Testing the above script on OS X Lion, even without the new window animation enabled, didn't work. I had to add delay 0.1 to the script just after activate, so that the menu item was actually activated.

Related Question