For those arriving here from Google:
The best way to now perform this task, without having to use incognito, is to adjust two settings in the Chromium preferences. They are:
From what I have gathered from personal tests, just changing the "exited_cleanly" setting may not always work at preventing the Chromium prompt on startup. Other flags such as -disable-infobars
will also not work.
To adjust these settings, please add the following in your startup file, before launching Chromium (depending on how you have set up Chromium to automatically run in kiosk mode, this file can either be located at /etc/xdg/lxsession/LXDE-pi/autostart
, /etc/xdg/openbox/autostart
, ~/.Xsession
, or another file, depending on what you have already installed).
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences
sed -i 's/"exit_type": "Crashed"/"exit_type": "Normal"/' ~/.config/chromium/Default/Preferences
For example, with my setup (using Xsession
), the procedure would go as follows:
- Enter
sudo nano ~/.Xsession
into the console
- Insert the above 2 lines into the file, before Chromium is run (You should see a line starting with
chromium-browser
, so insert them above this)
- Press Ctrl + X to exit the file
- Type Y
- Press Enter
- Reboot the machine
Again, the file used to start up Chromium may be located in a different location, depending on how you have setup your Pi, but after changing these two settings, Chromium should start up without displaying the crashing prompt.