LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-28-2003, 02:24 PM   #1
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
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?
 
Old 03-28-2003, 03:01 PM   #2
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
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
 
Old 03-29-2003, 11:41 AM   #3
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Thanks, that works.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE and double clicking Ravo Linux - General 2 02-20-2005 11:41 AM
How to run a script by double clicking it tom221 Linux - Newbie 6 02-07-2005 03:04 PM
enable Double clicking??? xhispage Linux - Newbie 2 10-19-2004 03:22 AM
Double clicking on rpm pakages gives me this linuxnoobie2004 Fedora 2 05-19-2004 02:48 PM
mozilla not opening on double clicking..? metoome Linux - Newbie 1 03-11-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration