Skip to content
Eddie Carbin

Oh, The Places You'll Go!

  • Recent Works
  • Museum Exhibits
  • Games
  • Blog

Raspberry Pi autorun Electron JS app

September 14, 2020

Found a great article on running electron js app on startup of the Raspberry pi. First thing I had to realize for a electron startup app you have to let the GUI init then run the app.

From the article, I had to make the following change. Please note the date of any article you are reading when programming for Raspberry Pi because the OS changes with each build version.

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

Then I added the following NPM script to the file

@npm run start-pi --prefix /home/pi/spaceface/

Reference:

http://www.esologic.com/automatically-run-electron-application-at-reboot-on-raspberry-pi/

© eddiecarbin.com 2025
  • Recent Works
  • Museum Exhibits
  • Games
  • Blog