I am trying to achieve the following:
Have a browser load when my python script starts, and sit idle in the background until it is needed, then pass the URL to the browser and bring it to the front, in full screen kiosk mode. The reason I want to load it on startup is because I want as little time possible from getting the URL to displaying, so I want to remove the actual booting up of the browser time.
To do this I am considering using the webbrowser module, as this will allow me to do all this, however I can't seem to find a way to open up the browser in full screen (kiosk) mode.
Alternatively I am able to boot up in kiosk mode from the terminal with:
os.system("chromium-browser --kiosk " + url)
However this opens a new full instance of the chromium browser, rather than just passing the URL to the already open browser as well as requiring its own Process
to do, whatever its doing.
So what I am looking for is ideally a way of loading the webbrowser module in full screen mode, Or a way to comfortably pass URL's into an already loaded browser process from terminal Or a third option that will allow me to achieve what I am trying.
I am using Raspbian running on a raspberry pi 2 and have Chromium and Epiphany as available browsers.
Cheers