Hey Everyone.
I'm currently developing a GTK application, and a problem has appeared regarding relative path addressing. For instance, to add a pixmap directory to load my images I will use a line such as:
Code:
add_pixmap_directory ("../images");
However, if the application is ran via another shortcut or run from a different location on the CLI, this will now fail since its trying to find the files relative from where the application is being run from.
Is there a good method to find the installation directory to locate the files? Surely this hasn't got to be hardcoded in? If there is a cross platform solution, that would also be ideal (though windows support is not as important right now)