LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question about linking programs (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-linking-programs-186416/)

Darx 05-27-2004 04:23 AM

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?

SciYro 05-27-2004 05:07 AM

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?

chii-chan 05-27-2004 05:44 AM

May be a simple script would do the job?

Code:

#!/bin/bash

cd /installation\ folder
./program\ name


Darx 05-27-2004 05:45 AM

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.

Darx 05-27-2004 05:46 AM

Woo, that was quick. How do I make a script?

*EDIT*

Nevermind, I got it. Thanks everyone.

SciYro 05-27-2004 06:17 AM

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


All times are GMT -5. The time now is 09:21 AM.