I have a script ~/startup.sh that invokes a GUI program. I want this script to run once during user login (not everytime when a new terminal is opened). How to achieve this?
I have tried lxsession/LXDE-pi/autostart changes but doesn't seem to work.
I accomplished this by placing a .desktop
file in ~/.config/autostart/
.