In the scripts below, xinit is used to start midori. But as you can see there are some parameters in the first and in the second script. So my question is:
How does "DISPLAY=:0.0", "xinit" and "-- -nocursor" affect each line in start-browser.sh?
I am trying to figure out the logic behind structuring these scripts this way, and why is the first script needed, to start the second script (except from throwing it in the background)
And what if I wanted merge these two scripts? Would this be possible, and how?
process-browser.sh
Code:
#!/bin/bash
DISPLAY=:0.0 sudo xinit $config/start-browser.sh -- -nocursor > /dev/null 2>&1 &
start-browser.sh
Code:
#!/bin/bash
xset -dpms
xset s off
xset s noblank
matchbox-window-manager &
midori -e Fullscreen -a $browserurl