How to make a script (Bash, KornShell, etc.) executable by mouse clicking?

Hello everybody,

Is there any way to make a script (Bash, KornShell, etc.) executable
by mouse clicking?

For example you have a file myscript.sh, you run:

$ chmod u+x myscript.sh

Therefore it becomes executable and all you need is to run from
the terminal:

$./myscript.sh

However, I've seen that there are scripts that can be run only by
clicking on the icon file instead of running the script in the
terminal. How should I proceed in order to run the script that way?

Thanks in advance,
:slight_smile:

Are you talking about using the mouse from inside the Graphical Desktop Environment (i.e. GNOME/KDE?) or you talking about using the mouse from within the console with gpm?

Yes, in fact, I'm talking about using the mouse from inside the Graphical Desktop KDE/GNOME (currently I use Gnome 2.24.1)