LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2009, 01:07 PM   #1
deefree
LQ Newbie
 
Registered: Jun 2009
Location: Springfield IL
Distribution: CentOS
Posts: 1

Rep: Reputation: 0
Question Running a shell script from a Desktop icon


Is there a way to click on a Desktop icon for a shell script and have it automatically run "In Terminal" instead of also having to click on "In Terminal"?
 
Old 06-09-2009, 01:22 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Depends on what terminal you're using, see the relevant man page. And example in gnome-terminal, though;

Code:
gnome-terminal -e command
Note, though, that this will exit as soon as the command returns exit, so you could either stick a sleep after it, or run it as part of another command, such as screen
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script to move desktop icon to desktop/escritorio, how to know language? permalac Linux - Newbie 3 01-10-2009 09:49 AM
Gnome doesn't have any icons, desktop, or shell icon. CrewXp Linux - Software 5 08-17-2007 02:07 PM
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 07:29 AM
How can i change the icon of a shell script? BajaNick Linux - Software 6 01-14-2004 01:56 AM
Running wine from desktop icon Roy-Svork Linux - Software 5 06-22-2003 06:37 PM


All times are GMT -5. The time now is 10:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration