72

I've read you can start Google Chrome in kiosk mode in Windows by using the argument --kiosk.

I know how to do this on Windows, but how can I do this on Mac OS X?

And how can I run Google Chrome with the --kiosk argument on startup?

  • @YumYumYum ugh! It's 2017 and none of the answers work (anymore?)! – Michael Jan 19 '18 at 23:53
81

This works with macOS:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --kiosk
  • You mean the argument doesn't work? The actual process of full screening Chrome is in the Mac version. Any hack to send a Cmd+Shift+F to get it to full screen? Thanks for your answer. – alex Jun 27 '10 at 23:52
  • Ok. Can you try "ls /Applications/Google Chrome.app/Contents/MacOS" (or something like that) and post that? – Andrew Jun 27 '10 at 23:58
  • @Andrew I ran ls /Applications/Google\ Chrome.app/Contents/MacOS and it printed 'Google Chrome' only. :S – alex Jun 28 '10 at 0:18
  • 1
    @Andrew Thanks for that, and how would I run this on startup? Cheers. – alex Jul 1 '10 at 13:23
  • 4
    DOES NOT WORK on OSX – YumYumYum Mar 2 '16 at 8:32
26

It is probably even better to use the open command (in case the application is not located in the Application folder). E.g.: open -a "Google Chrome" --args --kiosk http://www.example.com

  • 5
    DOES NOT WORK on OSX – YumYumYum Mar 2 '16 at 8:32
11

In AppleScript, paste the following text:

do shell script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --kiosk"

Save it as an application and add it to your startup items.

  • 4
    DOES NOT WORK on OSX – YumYumYum Mar 2 '16 at 8:32
  • 2
    It did back in 2012. Now, use the code that newer comments have mentioned, /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --kiosk --app=http://domain.com put that in a plain txt document, but add the following snippet above the call to Chrome to make it executable,#!/bin/bash and add it to your startup items, or doublbe click to launch. – vynsynt Mar 7 '16 at 21:17
  • @vynsynt, Is the binbash line really needed? – Pacerier Dec 14 '17 at 4:16
1

You can create an alias to open websites or files via command line. To do this, you can include at the end of your ~/.bashrc, ~/.bash_profile or ~/.aliases the following lines:

# Google Chrome Alias
google-chrome() {
    open -a "Google Chrome" "$1"
}
  • This is not how you deal with spaces in filenames. Learn to quote or escape special chars properly. Also, "$1" is not going to work right when you have more than one param to pass, especially if those params themselves have unquoted values. – Marcin Jul 2 at 13:54
  • Hi @Marcin! If you know how, could you improve my response? 🙂 – garciparedes Jul 2 at 18:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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