LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-31-2003, 05:57 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

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, 05: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, 08:17 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

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, 09: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, 10:22 PM   #5
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

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, 10: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, 09:45 AM   #7
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

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



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

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

All times are GMT -5. The time now is 03:06 PM.

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