Using external data-files in programs

Erlend Hamberg ehamberg at gmail.com
Sat Jul 24 19:38:26 BST 2004


How can I write programs that use external data-files which can be run
from konqueror by (double) clicking on them?
I usually have sounds and images in a directory called "data" and open
the files from my program using a relative path, but when I run them
from konqueror the program can't open the files in "data/". So
whenever I give a program to some friends or something they have to
open a terminal and browse to the directory containing the executable
file before they can run the program.

Thanks in advance.
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list