I have a python script named script.py I want to double click on script.desktop, and it will execute the shell file script.sh, which will then evecute the python file: script.py.
My script.desktop file contains:
[Desktop Entry]
Name=jobs
Comment=jobs
Exec=/home/user/Desktop/school_scrape/script.sh
Icon=/home/user/Desktop/school_scrape/icon.png
Terminal=true
Type=Application
My shell file script.sh thus looks like:
#!/bin/bash
echo "hi"
sleep 2m
I eventually want it to execute a script.py file, upon executing it via the shell file, but itd make sense to first get it to echo hi first
I cant even get it to output the hi though in terminal when i double click script.desktop it just hangs with no error.
First I'd like for it to just run .desktop file, that runs the .sh file, and outputs hi, then ill worry about executing the python file.
Any idea what im doing wrong?
chmod +x script.py? then it may run with double click and you don't needscript.sh#!/full/path/pythoninscript.pythen you can tryExec=/home/user/Desktop/school_scrape/script.pyor inscript.shuse/full/path/script.py. If you don't have#!/full/path/pythoninscript.pythen you needpython /full/path/script.pyinscript.shhiin terminal, when i double click on.desktopfile, ultimately the goal is to get the python script to run, buthiis a good startchmod +xand#!/full/path/pythonor#!/bin/bash(shebang) in script.