Re: wxEuphoria Linux Problem: double clicking freecell executable

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jerry Story wrote:

> I now understand better what a script is, but
> how it solves the problem is still as clear as mud to me.
> 
> Question 1:
> Do you mean that I should make a script and click on it?
> 
> Question 2:
> If myprog doesn't know how to find itself, how does the script
> know how to find itself?
> 
> Question 3:
> Most programs work when clicked, without a script.
> Why not myprog?

A script is not necessary.
The reason your program fails to execute properly when clicked 
from within Konqueror is because Konqueror does not change your 
logged-in directory to follow you as you click around. 

IOW, if you are in your home directory: /home/jerry, and browse around 
into /home/jerry/somefolder and click on someprog.eu, the logged 
in directory is *still* /home/jerry. So the program looks there 
for any graphics, ini, or other files it needs to use. It won't 
find them. Changing or setting path in your environment won't help.

I (finally) solved that problem in EuGTK. Look there for the answer.
It's a matter of parsing the command line. You can easily add this 
to your programs. If you are running someone else's bound pgm, you 
are SOL.

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu