Scout24 / kiosk-browser

Debian package to set up a system as a kiosk browser
GNU General Public License v3.0
33 stars 16 forks source link

execute only on internet connection #5

Closed yveveke closed 9 years ago

yveveke commented 10 years ago

in the .xsession file, is it possible to check if the kiosk has internet connection, and only then launch the browsers? Or to show a standard local html page with the message "connecting to the internet" and when the machine has connection press F5 with xdotool.

yveveke commented 10 years ago

I saw your blog post "Simple Command Line Download Speed Test", maybe this can be used?

schlomo commented 10 years ago

I guess it would be easier to just delay the start of the kiosk browser till an external connection is available.

You can easily extend it by putting some shell code into /etc/defaults/kiosk-browser where you could also do that waiting loop. kiosk-browser now also pulls in xosd so that you can use osd_cat to easily display an info while waiting (see 362b18fade32aeed5d91664cd9c2819dbd7fb041 for example)

In my use case there is actually another package that provides a /etc/defaults/kiosk-browser which loads the kiosk-browser configuration from our Wiki so that all dashboards can use the same disk image / software packages.

I also plan to publish that as an example of how to further automate such systems. I will update this issue once it is out.

schlomo commented 9 years ago

A couple of months ago I added code to wait for some time to give the network more time to start. Probably not going to solve all your problems, though.

If you want to have something more elaborate then please provide a pull request.