I am trying to get firefox-esr to open at startup. I successfully installed & updated Raspbian Stretch.
The easy code version was to add @firefox-esr
to the bottom of:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
This didn't work, which surprised me. So after reading some here, I tried what looked like a more foolproof run.
I have two scripts in:
/home/pi/
First one: start_firefox.sh
/bin/sleep 13
sudo -u pi firefox-esr
/bin/sleep 3
xdotool key F11
Second one: start_REfresh.sh
/bin/sleep 15
/usr/bin/lxterminal --command watch -n 3600 xdotool key ctrl+F5 &
Now, I have tested the first one in terminal with /home/pi/start_firefox.sh
and it opens firefox though doesn't seem to engage the fullscreen.
I ran these to make it executable:
sudo chmod 755 start_REfresh.sh
sudo chmod +x start_REfresh.sh
sudo chmod 755 start_firefox.sh
sudo chmod +x start_firefox.sh
So I change my autostart file sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
And it includes these:
@/home/pi/start_REfresh.sh
@/home/pi/start_firefox.sh
But it doesn't work. Am I using the wrong autostart file? If it matters, I'm using Stretch 9.2. Thank you for your guidance!
nano ~/.config/lxsession/LXDE-pi/autostart
; if the file isn't empty you know it exists) If there are contents in that file, the autostart file in /etc is ignored if I remember correctly. – Aurora0001 Jul 29 '18 at 15:44