LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-15-2002, 10:55 AM   #1
ss109
LQ Newbie
 
Registered: Mar 2002
Location: Springfield, Missouri
Distribution: Mandrake 8.1
Posts: 12

Rep: Reputation: 0
Question Creating Desktop Program Icon


ould like to post a new icon on my desktop that links to a program. I already know how to do this basically. HOwever, normally whenever I use the program, I must 'cd filename' first, then 'wish programname'. HOw can I have the system do this under a desktop link?
TIA
 
Old 03-15-2002, 10:59 AM   #2
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Write a shell script containing the two commands you mention - something like

#!/bin/sh
cd filename
wish programname

do chmod +x shellscriptfilename to make the script executuable, then just link the icon to the shell script. hope that helps
 
Old 03-15-2002, 11:11 AM   #3
ss109
LQ Newbie
 
Registered: Mar 2002
Location: Springfield, Missouri
Distribution: Mandrake 8.1
Posts: 12

Original Poster
Rep: Reputation: 0
Where do I put the 'chmod +x shellscriptfilename'?
 
Old 03-15-2002, 12:18 PM   #4
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
It's a shell command, type it into an xterm after you've created the shell script file.
 
Old 03-15-2002, 12:26 PM   #5
ss109
LQ Newbie
 
Registered: Mar 2002
Location: Springfield, Missouri
Distribution: Mandrake 8.1
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating desktop icon oingram Linux - Software 6 12-31-2004 04:39 AM
Creating a Javascript Desktop Icon gothrog Linux - Software 2 10-14-2004 06:15 PM
How does one creating printer icon on the desktop... SuSe/KDE? pwillikers Linux - Newbie 1 10-12-2004 07:39 PM
Creating a desktop icon for Azureus Scorpio Linux - Newbie 24 05-24-2004 11:16 AM
Creating Desktop Icon biggiefatts Linux - Software 4 05-27-2002 01:46 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration