Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-09-2009, 01:07 PM   #1
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
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;

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 AM.

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