I'm running a python app on boot using:

@/usr/bin/python /home/pi/Desktop/file.py

that I added to:


It works great. However when I end the python script the Desktop doesn't load. I don't think there is an infinite loop or something like that cause I use:

os.system('killall python')

to close the script.

I'm just left with a black screen..

Many thanks :)

  • Why do you need to use killall python?
    – scitronboy
    Mar 6 '19 at 20:32
  • My script is a python app done with Kivy, to stop the execution and leave the app I use a button that calls the "killall python". Also I have a couple processes that gets killed as well Mar 6 '19 at 20:38

Answer was to add:


to the autostart file. My autostart file was containing just the python launch command and so after executing the app it wasn't doing anything else.

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.