Hello! this is my code for autostart my python project on raspberry, but doesn't work:
[Desktop Entry]
Type=Application
Name=RaspberryProject
Exec=sudo -E python3 /home/pi/Documents/Programa/RaspberryProject/main.py
k9t33n
Sorry for the late help
k9t33n
Just run it in crontab
k9t33n
You need it to run every boot?
jjpp
yes
k9t33n
Okay and what is the python script for?
jjpp
its a interface made with tkinter
jjpp
I need sudo -E because one of the options of the program modify the wifi file
k9t33n
Use crontab with sudo
k9t33n
Do cron -e I think that's the command
k9t33n
And add @reboot [command] to the bottom of the file