nerves-web-kiosk / kiosk_system_rpi3

Nerves QtWebEngine Kiosk system for Raspberry Pi 3
Apache License 2.0
67 stars 25 forks source link

How to actually launch the kiosk browser? #5

Closed orestis closed 6 years ago

orestis commented 6 years ago

I have finally successfully built the image, only to realise I now need to control the browser.

I tried to add this to my nerves app:

def run_kiosk do
    System.cmd("qt-webkit-kiosk", ["--clear-cache", "-u", "http://localhost"])
  end

And wrap it into a supervisor with:

worker(Task, [fn -> run_kiosk end]),

But upon system boot the erlang VM crashes, so it probably doesn't do what it's supposed to do.

Thanks in advance for any help!

electricshaman commented 6 years ago

@orestis Did my comments in #12 help resolve this issue for you?