Thu Feb 06, 2020 9:50 am
Observation points..
- rc.local already runs as root, you dont need sudo on any commands.
- add a "&" after "startx" so it runs in the background.
- then you need another "sleep" while the desktop is loading before starting any programs.
- "export DISPLAY=:0.0" is needed to tell programs which X-server to connect to.
- "killall xpdf" is a good command to get rid of running copies before starting a new one.