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. – Milliways Aug 24 '20 at 03:57/etc/xdg/lxsession/LXDE-pi/autostart
to autostart your GUI. – Dougie Aug 24 '20 at 10:09@lxterminal -e "sudo python3 /home/pi/test.py"
but it did't work – Neldela Aug 24 '20 at 10:13python3 /filepath
but it didn't work. Can you please tell me the correct way to to this? – Neldela Aug 24 '20 at 13:33