LinuxQuestions.org
Register a domain and help support LQ
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 03-31-2003, 06:57 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Rep: Reputation: 30
create a shortcut/alias


How do I create a shortcut on the desktop to something that I start up thru a command line. Suppose I have an application called foo that I start from the command line like so:
./foo
I want to create a shortcut on the desktop (or thru the GNOME menu) to start this.
Thanks!
 
Old 03-31-2003, 06:59 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Right Click on the desktop and go to:

Create New
Link To Application...
 
Old 03-31-2003, 09:17 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Original Poster
Rep: Reputation: 30
This must be it (in RH 8.0, Gnome 2.0):
Right Click on Desktop, select New Launcher.

So in a terminal, i would type
cd /usr/bin/foodir
./foo

but for this, the command needs to happen in one line.
./usr/bin/foodir/foo
doesn't work

How to do this?
 
Old 03-31-2003, 10:23 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You don't need to put the . in the path. A simple:

/usr/bin/foodir/foo

will execute the foo command. You only need to use the ./ if you are in the directory where the command is. So if your present working directory was:

root@localhost /usr/bin/foodir $

and you just typed:

foo

it wouldn't work. Then you would have to do ./foo .

Does that make sense?
 
Old 03-31-2003, 11:22 PM   #5
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Original Poster
Rep: Reputation: 30
That was the first thing I tried, and it doesn't work.
Either dbl-clking on the icon or right-clk and selecting Open results in...nothing.
 
Old 03-31-2003, 11:24 PM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Are you sure the file you are linking to is executable?
 
Old 04-01-2003, 10:45 AM   #7
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Original Poster
Rep: Reputation: 30
As I said, typing "./foo" causes the program to run.
If i look at the properties of the file, it says:
Type: binary
MIME type: application/x-executable-binary
 
  


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
Create alias for font? titopoquito Linux - Software 4 10-03-2005 07:17 AM
create alias ohade Mandriva 1 08-09-2005 05:12 PM
create alias for root powah SUSE / openSUSE 1 04-25-2005 01:19 PM
Create alias or add to $PATH ryedunn Linux - Newbie 3 08-18-2004 11:42 AM
How to create a shortcut? gmoney Linux - Software 3 10-08-2003 08:51 PM


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