Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Previously in 10.6.8, I was able to start Google using open /Applications/Chrome.app --args --kiosk http://www.google.com

Now, on newer systems, that does not work anymore correctly. The only way to get rid of the address bar seams to be using of the presentation mode. Does anyone know the switch to call that mode?

I use the shell script for a presentation computer to start the browser on startup automatically in fullscreen mode.

Any help is appreciated.

share|improve this question
    
Check this on Super User: superuser.com/questions/209980/… ... Seems like kiosk is broken in Lion+ and the work around is AppleScript. –  vcsjones Dec 10 '12 at 14:55
add comment

1 Answer

I tested this out and then it wouldn't let me exit kiosk mode. I had to Cmd+Q to get out of Google Chrome. Save the following to a script, something like ChromeKiosk.sh and chmod +x ChromeKiosk.sh to get it to run.

#!/bin/bash
open "/Applications/Google Chrome.app" --args --kiosk http://www.google.com.au

This will open Google Chrome to the http://www.google.com.au webpage. Change it as you need. Copy and paste the rest of the script

If you want to turn it into an AppleScript so that you can create an application that can in turn be automatically run each time the computer reboots to a default specified user, use the following code and when you save the script, change it's type to Application

do shell script "/bin/bash open \"/Applications/Google Chrome.app\" --args --kiosk"

It's requires the \ (escape sequence) before the " because of the way the shell reads the spacing between the words Google and Chrome in the filename. You can also write it as

do shell script "/bin/bash open /Applications/Google\\ Chrome.app --args --kiosk"

It's just that I've never favoured the look of seeing a escape before a backslash. It's too messy. Stick with either the BashScript option at the top or use the 1st of 2 AppleScript lines and save it as an Application type.

share|improve this answer
    
I made a nice little native application that will do this for you now too - danijeljames.github.io/Chrome-Kiosk-Mode - download the DMG file. –  Danijel J Oct 27 '13 at 9:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.