Disable Google Chrome session restore functionality [duplicate]

I know this is old but I thought it would be helpful to others that may come across this.

I had this issue and tried the flags settings but that did not help. adding --incognito to the command did resolve the issue.

chrome.exe --kiosk --incognito some.web.site

I tried this in various fashions of crashing Chrome and pulling the power to the PC. In all tests the system would power up and go into kiosk mode without the frown face error message.


try this line

chrome.exe --kiosk --disable-session-crashed-bubble "http://example.com"

For more detailed information

http://peter.sh/experiments/chromium-command-line-switches/


I see some inconveniences in the solutions provided:

--incognito switch removes cache, what is pretty bad in most circumstances.

(Copy-pasting chrome help )

Google Chrome has hundreds of undocumented command-line flags that are added and removed at the whim of the developers.

--disable-session-crashed-bubble depends of which version of chrome are you using, the most actual version v39 doesn't have this setting allowed.

The solution I did was to alter the user profile and overwrite the crash status to a normal close status, It's a simple hack that works perfect.

This is the script I run in kiosk-mode in a chrome-only session under Ubuntu 12.04 and 14.04

#!/bin/sh
sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/google-chrome/Default/Preferences
sed -i 's/"exit_type": "Crashed"/"exit_type": "None"/' ~/.config/google-chrome/Default/Preferences
google-chrome --kiosk "http://some_url"

It simply finds and replace the string

  • "exited_cleanly":false
  • exit_type": "Crashed"

with

  • "exited_cleanly": true
  • "exit_type": "None"

So, no matter how chrome has closed. It will always think it has closed gracefully. (Tested in many chrome versions)


Try this

  • go to chrome://flags/
  • then click Enable on the link that writes: "Disable Better session restore"

I hope this helps


Open chrome \ Default \ Preference, and change the value to

"exit_type": "none",

"exited_cleanly": true,

Save the file, and put him to attribute "read only". Tested on various versions of the Chrome browser