1

I am reading this answer, and I edited /etc/xdg/lxsession/LXDE-pi/autostart, by appending the following line:

@sudo java -jar /home/pi/Documents/devel/MyProject/MyProject.jar 

But nothing happens when I reboot the Pi, the program does not get started. I will also want to have a terminal window if possible.

1 Answer 1

0

I have packaged my app now with a shell script that runs the java command. Then I have a my-app.desktop file like this:

[Desktop Entry] Type=Application Exec=lxterminal -e "my-app-script" 

And this goes into .config/autostart.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.