I created a .desktop file that looks like this:
[Desktop Entry]
Name = My Script
Comment = Test
Exec= /home/zito/Documents/loc_tk.py
Icon=
Terminal=false
type=Application
I put the hashbang in the python file #!/usr/bin/env python
and I also set the python file to be executable but every time I double click my .desktop
file it brings up the error "There was an error launching the application".
Exec= /home/zito/Documents/python3 loc_tk.py