1

Say I have written an app. I would now like the raspberry pi to start up and go straight into that app, give the user no options to do anything on the raspberry pi's OS etc. or break out of it. I don't even want the user to see the GUI of Raspbian.

So, I want it to look like the pi is solely running this one software I wrote, similar to when one starts up a Gameboy or XMBC or Retropi.

1) How this sort of functionality called? (I only found startup scripts & crontab stuff when I googled this, but this is not what I mean)

2) How would I best implement this with my pi? My App is currently a javascript app running in electron.

I hope this question is not too stupid or that I missed anything! Would be really grateful for some advice!

  • Are you looking for "splashscreens" ? I doubt Electron can do it , because it has much more runtime dependencies than "plymouth" which is usually preferred for this job since it doesn't need X and fast 2D graphics. Consider starting "plymouth" first and handing off to Electron in a staggered approach , just – flakeshake Jul 21 '17 at 12:42
0

Try to hide boring startup times with a "splashcreen" like plymouth. Electron can only be started quite late in the boot process since it depends on X , you can only mask the delay. Another method to consider might to display a screenshot of your app until everything is loaded and then killing plymouth , revealing Electron.

  • thanks. but couldn't the user still just close the app and then go and use raspbian etc.? My goal is to have the app the only thing the user ever sees and also have it be the only thing the user is ever able to interact with or edit. – George Welder Jul 21 '17 at 13:18
  • Make a script/program which checks if Electron is running and restarts it if not. It could also restart the whole Pi instead. – flakeshake Jul 24 '17 at 8:54

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.