I have a python script on my desktop that I want to execute by clicking on it. I have permissions set and all that, but it won't launch by clicking on it. I can start it using the terminal and everything works as expected.
Here's the script:
#!/usr/bin/env/python
import subprocess
subprocess.run(['python', '/filepath/EDITOR.py'])
subprocess.run(['python', '/filepath/ULTRASOUND_SIMULATOR.py'])
I've been able to launch the "ULTRASOUND_SIMULATOR.py" script from the desktop with a click.
#!/usr/bin/env/pythonis incorrect. It should be#!/usr/bin/env python.#!/usr/bin/env python3with no space.chmod +x filename.py? My Pi seems to have disappeared, so I can't replicate your situation. There's really not much else I can think of...