LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-27-2004, 04:23 AM   #1
Darx
Member
 
Registered: Mar 2004
Posts: 52

Rep: Reputation: 15
Question about linking programs


Normally, I don't even bother with shortcuts, as just hitting F2 and typing something's fast enough. But in this case (installing NWN linux client) it doesn't work, since the program needs to be run from the folder it was installed in. Is there any way to link to a program so that it acts like it's running from the installation folder?
 
Old 05-27-2004, 05:07 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
ummm, what DE are you using? (each one has its own way of doing things..... or might just search for a program to make shortcuts)

and why would a program need to run in its installation folder?
 
Old 05-27-2004, 05:44 AM   #3
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
May be a simple script would do the job?

Code:
#!/bin/bash

cd /installation\ folder
./program\ name
 
Old 05-27-2004, 05:45 AM   #4
Darx
Member
 
Registered: Mar 2004
Posts: 52

Original Poster
Rep: Reputation: 15
I'm using KDE, and I have no idea why it needs to. All I know is I tried using 'sh /root/nwn/nwn' from a linking shortcut, but it gave me some crap about not being able to find a file. If I'm in a consol and I cd to the dir before executing ./nwn, though, it starts just fine. Stupid complicated linux.
 
Old 05-27-2004, 05:46 AM   #5
Darx
Member
 
Registered: Mar 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Woo, that was quick. How do I make a script?

*EDIT*

Nevermind, I got it. Thanks everyone.

Last edited by Darx; 05-27-2004 at 06:00 AM.
 
Old 05-27-2004, 06:17 AM   #6
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Quote:
Stupid complicated linux.
blame the program your trying to use, its obviously poorly written if you need to be in the install directory before it can run ... a proper program should be able to run no matter where you are
 
  


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
compiling and linking C programs node047 Linux - General 2 04-20-2005 11:47 AM
Linking Programs to the commandline BorgKiller Linux - Software 2 04-05-2005 09:10 PM
linking C++ programs in FreeBSD balasaravanan *BSD 2 11-03-2004 07:36 PM
problems linking programs directories in my path jimdaworm Linux - Newbie 9 04-14-2004 03:27 PM
Linking to programs Ben Sytko Linux - Newbie 3 02-26-2003 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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