I am currently network booting a Raspberry Pi and using Openbox I autostart chromium, is it possible that if a user presses close or minimise I can programatically restart chromium in the background?
You can use a shell command to restart the command as soon as it finishes.
Assuming your openbox config for autostarting stuff lets you put in shell snippets you can use
while true; do
chromium
done
If you have to specify just one command in your openbox config you can wrap that in a string to hand to sh
:
sh -c 'while true; do chromium; done'
Or you could put it in a script and make that executable (chmod +x my-script-file.sh
):
#!/bin/sh
while true; do
chromium
done
and then tell openbox to autostart the my-script-file.sh.