0

I have successfully launched a python script using "LXDE-PI" autostart function, however, this script needs to run as root in order to function correctly. How can I do this? Where would I need to add sudo?

0

In your LXDE-pi autostart file:

Add sudo in front of your Python script call: @/usr/bin/python /your/python/script.py -> @sudo /usr/bin/python /your/python/script.py

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.