I want to autostart a Python script that starts a Tkinter GUI at boot up.
The working terminal command to start the script is python3 /home/pi/Documents/slincam/slincam_menu.py
.
I added this command to /etc/rc.local
, but the program doesn't show up at boot up. Strangely when I type sudo /etc/rc.local
in the terminal, the program starts.
Please, does someone know a solution for this?
/etc/rc.local
. To compound the issue you CAN NOT start a GUI program on boot, using ANY method - because there is NO Desktop until login./etc/xdg/lxsession/LXDE-pi/autostart
to autostart your GUI.