On Sunday 25 March 2001 12:58, you wrote:
> I use a program called Kmud. If I open a konsole and change to
> /kmud-1.0beta1-linux-i386  then type ./kmud   the program runs.
>
> Here's the questions. First, why do I need to type ./ first? Kmud is
> shown in kfm as a script file. This is probably a really basic thing,
> but I just know it works. But I'd like to know how and why it works.
>
> Second question, I went to add an application icon for that program. In
> the properties box, I put that directory in the excute box on the top.
> in the second excute box, I typed ./kmud. But the program won't run by
> clicking on it. I've tried different combinations on the top and bottom
> box. No go.  How can I make this work?
>
> Thanks!
>
> Barbara

./ tells it to use the current directory immediately instead of searching the 
whole execute path

to see the execute path type this in a terminal

echo $PATH

That PATH is what tells the system where to find executables--if the kmud 
name were unique and you did

export PATH=/kmud-1.0beta-linux-i386:$PATH

not in a terminal though that would work momentarily, but rather in a file 
like
/home/username/.bashrc,
then you would not need the ./

Now in the execution icon just put /kmud-1.0beta1-linux-i386/kmud in the 
first box and save it. (When you explicitly state the path, the shell program 
will take that instead of searching directories in the PATH variable.)

Civileme

Reply via email to