1

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.

1 Answer 1

1

I accomplished this by placing a .desktop file in ~/.config/autostart/.

1
  • Could you please add this as the correct answer.
    – user67191
    Commented Jun 7, 2017 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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