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.

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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