I'm making an emulator frontend and I want it to run when I turn the RPi on. The script to launch the application is named "run.sh" and I'm working on Raspbian Stretch Lite.
I currently have "./run.sh &" at the end of "/home/pi/.profile". It works fine, but whenever I have to access the Pi through SSH, the script is executed again and I have to stop both instances.
Is there another way to make this without having the script run again when you access the Pi through SSH?
Thanks in advance.