Touchpanel Chromium Error -> solution to avoid

Hi,

I have a RaspBerry 3B together with the original 7" TouchPanel. When I turn of the raspberry without “shutdown” at the next start following error message will occur:

"Restore pages? Chromium didn’t shut down correctly.

To avoid this error message following parameter has to be added to /opt/volumiokiosk.sh

–incognito

to the call of the chromium browser

Thanks for reporting, however if we set incognito we can’t store cache, so loading albumarts will take a lot every reboot

Hi,

Ok thats a reason…

I added --disable-infobars

Seems to work so far.

Hello;
I’m a benginner and it is not so clear to me where I have to place – disable-infobars or – incognito.
Could you explane me exactly in which position I have to add it, please?

#!/bin/bash
xset -dpms
xset s off
openbox-session &
while true; do
/usr/bin/chromium-browser
–no-touch-pinch
–kiosk
–no-first-run
–disable-3d-apis
–disable-breakpad
–disable-crash-reporter
–disable-infobars
–disable-session-crashed-bubble
–disable-translate
–user-data-dir=’/data/volumiokiosk’ --no-sandbox localhost:3000
done

Many thanks in advance

Massimo

An additional info.
If I cancel the slashbar on --disable-infobars I get a message like this:

Please start Chromium as normal user. If you need to run as root for development rerun with --no-sandbox flag

Everytime I change the state of one of the rows in volumiokiosk.sh (add or remove ‘’’’ or try to add --incognito) I get this message and start a loop with it so it is not possible to continue

What am I missing?

Thank you for your help

Have a nice Sunday

Use this

#!/bin/bash
#prevent sleep (remove any other xset commands)
xset -dpms
xset s off
#prevent the ‘crashed’ dialog box: (keep each sed on 1 line)
sed -i ‘s/“exited_cleanly”:false/“exited_cleanly”:true/’ /data/volumiokiosk/Default/Preferences
sed -i ‘s/“exit_type”:“Crashed”/“exit_type”:“None”/’ /data/volumiokiosk/Default/Preferences
openbox-session &
while true; do
/usr/bin/chromium-browser
–no-touch-pinch
–kiosk
–no-first-run
–disable-3d-apis
–disable-breakpad
–disable-crash-reporter
–disable-infobars
–disable-session-crashed-bubble
–disable-translate
–user-data-dir=’/data/volumiokiosk’ --no-sandbox localhost:3000
done