Skip to content

Instantly share code, notes, and snippets.

@fookingthg
Last active December 23, 2018 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fookingthg/f98afc4d091135382df1cdaa73186f44 to your computer and use it in GitHub Desktop.
Save fookingthg/f98afc4d091135382df1cdaa73186f44 to your computer and use it in GitHub Desktop.
raspberry Pi : Start java apps on startup which required GUI
create a file test.desktop in /home/pi/.config/autostart/ with the following content.
replace app.jar with your jar location. (tested in raspi stretch)
[Desktop Entry]
Name=test
Type=Application
Exec=/usr/bin/java -jar /home/pi/Documents/app.jar
Terminal=true
Hidden=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment