Using external data-files in programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux