LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2006, 08:05 AM   #1
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 39
Posts: 215

Rep: Reputation: 18
Launching a script from the desktop


I am sure that this is a real newbie question.

I am running FC4. I have a script in my home directory which I can run by opening a terminal and then typing ./<nameOfScript>. The script needs to run in a Terminal window.

I would like to be able to start the script from an Icon on the desktop.

How would I create the Desktop Icon - and what would I put in there?

Ian
 
Old 10-29-2006, 08:31 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
What desktop environment do you use? Gnome, KDE or another?
 
Old 10-29-2006, 10:16 AM   #3
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 39
Posts: 215

Original Poster
Rep: Reputation: 18
I use the one that came by default with Fedora.

How do I determine which I am using?

Ian
 
Old 10-29-2006, 10:27 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
In KDE you can create a new application launcher and then using an advanced tab, choose to run it from a terminal. I am sure you can do something similar in GNOME.
 
Old 10-29-2006, 10:54 AM   #5
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 39
Posts: 215

Original Poster
Rep: Reputation: 18
My desktop has the 'Taskbar' at the top - so based on reddazz's screenshot, it must be Gnome I am using.
 
Old 10-29-2006, 11:29 AM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833Reputation: 1833
One way to do it if you use eterm or xterm is to make an icon pointing to.
Code:
eterm -e nameofscript
Eterm will run the script and then terminate.
Or if you want the terminal window to be sticky then something like
Code:
xterm -hold -e nameofscript
You will have to kill the process when you are done though to get the terminal window to close.

Look at
man eterm
and
man xterm

The script will also have to be sitting somewhere in your path.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems launching a script from the desktop in DSL lantian2004 Linux - Newbie 1 06-01-2006 05:55 AM
launching a script from rc.d invar Linux - Software 5 08-16-2004 03:42 PM
mozilla 1.7 launching script mrpringle Linux - Software 3 07-09-2004 04:46 PM
Launching apps in a virtual desktop lockejr Linux - Software 0 03-03-2004 06:00 PM
Launching Firebird through a script Travis S Linux - Software 5 02-03-2004 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:00 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