I am trying to start a java SWT application after the system has booted and the user has logged in on a debian based distro (RaspbianOS on a Raspberry Pi). Therefore I have added the line
sh <path>/startProgram.sh into the
I know that the start-script is getting called because I created a new directory for debug purposes in this script. Apart from that the script looks like this:
java -jar /home/pi/Downloads/AlarmClock.jar
And if I double click it manually it starts the application just fine. However it won't start at boot of the system. My first thought was that the X-server has not yet been initialized at that point but according to this article the
rc.local script is the very last init script to run and therefore the x-server should be initialized by then (at least according to my understanding)
Does anyone has an idea on how to start the program that will create a GUI after user login?