How to manually reload Chromium Kiosk
Problem:
You are running a Chromium Kiosk e.g. on a Raspberry Pi using a command like
chromium-browser --noerrdialogs --disable-infobars --disk-cache-dir=/dev/null --disk-cache-size=1 --kiosk http://localhoste.g. in /etc/xdg/openbox/autostart, but you don’t know how to manuy reload the Kiosk e.g. after you have changed the underlying website
Solution
In /etc/xdg/openbox/autostart or wherever your chromium-browser command is, enclose it in
while true ; do [CHROMIUM COMMAND] ; sleep 1 ; doneThe complete command would look like this, for example:
while true ; do chromium-browser --noerrdialogs --disable-infobars --disk-cache-dir=/dev/null --disk-cache-size=1 --kiosk http://localhost ; sleep 1 ; doneNow, to manually reload Chromium, all you have to do is to kill the process using
killall /usr/lib/chromium-browser/chromium-browser-v7This will kill the Chromium process and the while loop will automatically restart it after one second.
In case you see an error message like
/usr/lib/chromium-browser/chromium-browser-v7: No such file or directoryyou need to find out which executable is used for Chromium in order to pass that to killall. To find out the name of the executable, use
ps a | grep -i chromiumand look for a string similar to /usr/lib/chromium-browser/chromium-browser-v7.