David_24
David_24

Reputation: 157

Running Chrome with extension in kiosk mode

I really need to run Chrome in kiosk mode with an extension. If I start chrome with --app-id=xxxx it runs the app, but --kiosk is ignored. If I start it with --kiosk the app-id is ignored.

Is there any way to do both? Starting in full screen (F11 mode) is not going to work because of the bubble window at the top and the user can exit.

Upvotes: 11

Views: 54120

Answers (6)

user8062184
user8062184

Reputation: 11

As of 2017 chrome will no longer allow you to enter kiosk mode on new devices without a google chrome management license subscription. "Note: If your Chromebook, Chromebase, or Chromebox is from 2017 or later, it won't work in kiosk mode unless it's managed by an administrator."

See this article: https://support.google.com/chromebook/answer/3134673?h

Upvotes: 1

user3563850
user3563850

Reputation: 41

Try:

--user-data-dir=$(mktemp -d) 

This works for me in Chrome 43, but don't load extensions. How to enabled extensions in kiosk mode on windows 7?

Upvotes: 4

posit labs
posit labs

Reputation: 9471

Kiosk mode is basically the same as fullscreen mode, except the 'exit fullscreen' button doesn't work. The user can still quit the app because all of the menu options are still there.

I've found a way to hide the menu AND the dock by modifying Chrome's permissions. Note that this fix is specifically for OSX.

  1. Open the Chrome permission list: sudo open -e /Applications/Google Chrome.app/Contents/Info.plist

  2. Add this. <key>LSUIPresentationMode</key> <integer>3</integer>

Use this hack in conjunction with chrome command line option --kiosk http://yoururl.com to get true kiosk behavior.

Upvotes: 1

arvindwill
arvindwill

Reputation: 1992

Ok, proper solution:

Create a shortcut to the following(chrome.exe) (enter your url in the quotes):

"%localappdata%\Google\Chrome\Application\chrome.exe " --user-data-dir=$(mktemp -d) --kiosk "http://stutzen.co"

This will create an entirely separate instance of Chrome with its own userdata, sessions etc. in full screen kiosk mode. This can be exited by Alt-F4 or Alt-Tab.

src: https://productforums.google.com/forum/#!topic/chrome/eX15CQ602UQ

Upvotes: 2

PAEz
PAEz

Reputation: 8542

Go to options and for "Home Page" pick "Open this page" and enter the url for your web app and then add --kiosk to your command line.
To get the url for your app I usually just open the app in a tab, right click and pick view source and then youll get something like view-source:chrome-extension://hiddpjhppcbepfekmomnlopbjjjhilhk/popup.html for its url, copy everything after view-source: and put that as your homepage.

Upvotes: 5

strack
strack

Reputation: 574

For some reason, the command line switch --kiosk doesn't work in Mac OSX, and from what you're describing, maybe it doesn't work at all. ( http://peter.sh/experiments/chromium-command-line-switches and scroll down to --kiosk, THEN to the footnote....no explanation, but there it is).

You didn't specify if this a Mac OSX or Windows issue you're having, so I'm sorry if this doesn't help...

To workaround this on Mac OSX, you have to take two steps. (It's still kind of wonky even then, because each new tab is a new fullscreen app at least in Lion)

  1. Create an App pointing to your URL with this handy script.

  2. Take note of your app's name (replace [MyAppName] below) and create the following applescript:

    do shell script "open '/Applications/[MyAppName].app' "
    tell application "[MyAppName]" to activate
    tell application "System Events"
        keystroke "f" using {command down, shift down}
    end tell
    

    Save that applescript as an application, and run it.
    You can change the icon of your app as well. Here's how in case you didn't already know (like me. had to look it up): http://support.apple.com/kb/ht2493

Upvotes: 2

Related Questions