23

I am running Chromium in a kiosk-like environment and if the computer is powered off forcefully while Chromium is running, the next time it boots it will display the message "Chromium didn't shut down correctly. To reopen the pages you had open, click Restore."

I have tried saving some files within the ~/.config/chromium directory and replacing them before chromium loads but it doesnt seem to help. I cannot replace the entire folder as I need to keep things like local storage and cookies working normally.

I want to either HIDE this message from appearing, check for its existence and remove it, or prevent it being triggered in the first place.

Any advice?!

Daniel M.
  • 3,225
  • 1
  • 22
  • 16
  • 12
    I resolved this by running the following command before launching chromium each time: `sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium/Default/Preferences` source: https://groups.google.com/a/googleproductforums.com/forum/#!category-topic/chrome/discuss-chrome/WSK1J_Y_TvY (will update to answer later) – Daniel M. Mar 20 '12 at 19:11
  • Why was my question down voted? I asked a question, but happened to figure it out the same day. It wouldnt let me post an answer so soon so I put it in the comments for anyone else that wanted to know. Am I missing something? Sorry, but I am new to stackoverflow... – Daniel M. Mar 22 '12 at 15:21
  • M, apperently it was closed as "off topic" because the question is not really related to programming, the scope of the discussions on Stack Overflow. – Jochem Schulenklopper Jan 02 '15 at 20:05
  • you saved my day Daniel! – Pete Jan 09 '15 at 11:10
  • 5
    this should have been migrated to SU, not closed :( – Doktor J Feb 02 '15 at 15:06
  • To add to Daniel M.'s comment, under Ubuntu 14.04, I also needed a line: `sed -i 's/"exit_type": "Crashed"/"exit_type": "Normal"/' ~/.config/chromium/Default/Preferences` – Sarah Kemp Oct 30 '15 at 22:44
  • No spaces in that, sorry: `sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences` – Sarah Kemp Oct 30 '15 at 22:53
  • Also, apparently running in incognito mode by default will also prevent the error because nothing is saved from the session against which to check for a crash. – davea0511 Aug 13 '16 at 21:24

0 Answers0