Hello all,
I’m running the newest EndeavousOS using Plasma desktop environment and wrote few .sh files. The .sh files are executable and easily run from the terminal.
My question is… how can I run a .sh file without using the terminal? I should be able to click on, let say, example.sh and it should run. Currently, if I click on it it will open up in a text editor like Kate and that is not what I want.
In plasma (which may be different from other DEs in this regard), you right-click on the file icon, choose properties, and mark it as executable. Thereafter, clicking will execute the file. If you want to open it for editing, you right-click and choose to edit with your favorite text editor.
No. I just explained in my original post that the sh file is already executable and will run if using the terminal. It won’t run just by clicking on it. Understand?
If I click on a sh file it simply opens up in kate editor, which is not I want.
Then would be simpler to create a *.desktop file and place it as example in your desktop area.
that *.desktop file needs the path of your script… the filemanager should recognize that standard as a text file. make a desktop file you can make a starter out of it.