On Sat, 2009-03-14 at 14:22 -0700, Krzysztof KosiĆski wrote:
Jon A. Cruz wrote:
INKSCAPE_PIXMAPDIR is something very old and broken, and needs major fixing. It also is a *major* issue when it comes to OS X, since packaging is different than on Linux.
It should be defined at configure time, but someone decided to hardcode it relative to $(datadir) in path-prefix.h. Supposedly it is that way to support Autopackage. We need two things to fix it:
- A way to set it (and other path defines) on configure time. Essentially,
remove path-prefix.h and add some stuff to configure. 2. A set of functions that return those defined locations on Linux and figure out the correct absolute paths on Windows. Otherwise the CLI on Windows will remain totally broken because now we chdir to Inkscape's installation dir. The correct way is to build paths relative to the executable path fetched using GetModuleFileNameW.
It appears that you seem to be missing one of the main points of the XDG directory spec.
It allows for things to be changed at *runtime*, and per invocation.
Configure, build and install are all to early for best directory support.
Have you read through the XDG Base Directory Specification? We had many requests to support it well. Perhaps we should rough out some tables on a wiki page to show what affects which parts when.
One key one we're missing is loading configuration from $XDG_CONFIG_HOME and g_get_user_config_dir().