LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Running .sh script by double clicking? (http://www.linuxquestions.org/questions/linux-general-1/running-sh-script-by-double-clicking-52229/)

pilot1 03-28-2003 03:24 PM

Running .sh script by double clicking?
 
If I put a script (we'll just call it script.sh for now) on my desktop, how can I make it so that it runs in a terminal when I double click it?
Currently what happens is it's viewed with a text editor, and i'd like it to run when I double click it, instead of being viewed with an editor.
I'm thinking i'd need to make it a symbolic link and put the file in a *bin directory.
Can anyone help me do this?

bahamat 03-28-2003 04:01 PM

You can't do that really...

What you need to do instead is create a launcher that runs ([(gnome-)xawe]term|rxvt|konsole) -e script.sh

pilot1 03-29-2003 12:41 PM

Thanks, that works.


All times are GMT -5. The time now is 07:50 AM.