Link to my SoS Lab video https://www.youtube.com/watch?v=uA4RKeCI7r4
Link to Paul McWhorter's lesson 22 https://www.youtube.com/watch?v=O7x5r0P980U
Directions to make a GUI based .py file open with desktop icon
1- In VSC add this line at top of code (#! /usr/bin/python3)
2- In Terminal navigate to python file folder type (sudo chmod +x yourPythonFile.py)
3- To test from terminal python folder type (./yourPythonFile.py) which should bring up your window
4- On RPi desktop select preferences- Main Menu Editor
select New Item, give name, for command
browse to yourPython.py, then OK
item should be in dropdown, test
5- Right click on Item, select add to desktop
6- Right click shortcut icon click properties
click on icon symbol to add image, test
7- If Executable notification box comes up go to
file browser navigate Edit- preferences
check box on line...
Don't ask options on launch executable file
***************
Link to blog tutorial on "Run on Startup" from Sparkfun https://learn.sparkfun.com/tutorials/how-to-run-a-raspberry-pi-program-on-startup/all