1

I'm running a python app on boot using:

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

that I added to:

~/.config/lxsession/LXDE-pi/autostart

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 :)

2
  • Why do you need to use killall python? Commented Mar 6, 2019 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 Commented Mar 6, 2019 at 20:38

1 Answer 1

1

Answer was to add:

@startlxde

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 and acknowledge you have read our privacy policy.

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