Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4832

Beginners • Re: Making a desktop alias/program for an "sh" command

$
0
0
I didn't get a reply to my request for more specific direction, so I have been studying a bit, and while I have learned some things (about shebang, for instance), I am still not sure how to write this script. It turns out the launcher.sh script is actually similar to what I want to do. The entire content is:

Code:

cd ~/SimpleBookCapturepython SimpleBookCapture.py
So what I really want to do is make a double-clickable desktop alias that executes SimpleBookCapture.py.
Both that script and launcher.sh and everything else related to this application are in a folder titled SimpleBookCapture, which is currently in /home/pi/ I've seen several posts saying that scripts should be in the root /bin folder, but I don't know how that would work here. I feel pretty certain that if I just move SimpleBookCapture.py (or launcher.sh) to the bin folder, the whole thing will break. On the other hand, I don't know if moving the whole SimpleBookCapture folder into the bin folder would work.
So, to be very specific, I would like a short shebang script, which is double clickable and on the desktop, that launches the script SimpleBookCapture.py, which is in /home/pi/
(I would also actually like that script to run on boot-up, but that feels like another question requiring a separate topic heading.)

Statistics: Posted by Rachel_Thorn — Tue Nov 05, 2024 4:45 am



Viewing all articles
Browse latest Browse all 4832

Trending Articles