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?!
sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium/Default/Preferences
source: groups.google.com/a/googleproductforums.com/forum/… (will update to answer later) – Snortersed -i 's/"exit_type": "Crashed"/"exit_type": "Normal"/' ~/.config/chromium/Default/Preferences
– Anthropologistsed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
– Anthropologist