Delay Raspberry Pi Program

I use Raspberry Pi to automatically display a web page at startup.

Problem: as soon as the raspberries start, Midori starts, but I have the message "Can not Resolve Hostname ....".

When I refresh a web page 30 seconds after launch, it displays correctly.

How can I delay the start of Midori after X seconds?

I launched my webpage using /etc/xdg/lxsession/LXDE/autostart

+7
autostart raspberry-pi delay midori
source share
1 answer

To add a slight delay before midori starts, which will be less reliable than ip checking. See Section 3 at this link. http://www.antony-neu.com/2013/03/12/autostarting-a-browser-on-the-raspberry-pi/

Follow the steps and inside the bash script on the line that calls midori to add a wait period:

 sleep 5 
+6
source share

All Articles