LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-21-2011, 03:20 PM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
How to create links in applications for programs


I have installed programs such as matlab and gns into my computer.

However, I need to navigate to the folder and double click the script file before it executes.

Can anyone teach me how I can create a script to the applications menu or Desktop using the drag and drop method as well as the command line method?

I want to learn.

Thanks.
 
Old 09-21-2011, 03:33 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
I want to learn.
Dont we all... welcome to the Path!

Well, there is a possible way.

Desktop method : create a launcher. In XFCE you'd right-click and select just that. Fill out the blanks, navigate to the application and (if needed) supply some extra parameters. Oh, and a nice icon works miracles...

Console method : create a symlink. Okay, dive into a console and you (should) end up in your home folder. Make your way to a folder. Enter this

Quote:
ln -s /home/me/mystuff/thatprogram -some_parameter_if_needed
And you're set to quickly nav to a folder and enter the name there.

Path method : cool, this one. It allows you to invoke anything system-wide. Enter this:

Quote:
PATH=/data/myscripts:$PATH
to POST-path, and to PRE-path
Quote:
PATH=$PATH:/data/myscripts
Difference, in pre-pathing, YOUR entry will me searched first, otherwise, all the rest has to be scanned first, and your entry/folder just waits for last...

Have fun!

Thor
 
  


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
[ubuntu] links in menu "applications' elishac Linux - Newbie 7 01-25-2010 10:06 PM
Creating symbolic links for programs that use Java W0bbles Linux - Software 1 01-20-2006 10:24 PM
How to add custom program links in Applications with icons? crash_override_me Ubuntu 2 10-01-2005 08:31 AM
links within programs dont launch browser linuxmandrake Linux - Software 2 06-21-2005 08:16 PM
how do I create links to folders? liontamer13 Linux - Newbie 2 12-18-2004 04:05 AM


All times are GMT -5. The time now is 02:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration