datadir and libdir is hardwired
Submitted by Hing
When I run "ssconvert --version", it will show the following:
$ /scratch/gnumeric_install-test/bin/ssconvert --version ssconvert version '1.12.33' datadir := '/scratch/gnumeric_install-test/share/gnumeric/1.12.33' libdir := '/scratch/gnumeric_install-test/lib/gnumeric/1.12.33'
The datadir and libdir, according to the man page, it should be configurable using the option "-L" and "-D":
Gnumeric Options --libspreadsheet-version Display Gnumeric's version -L, --lib-dir=DIR Set the root library directory -D, --data-dir=DIR Adjust the root data directory
However, the options just take no effect.
When I look into the code (src/gutils.c), function "gutils_init()":
for non-win32 OS, the datadir just hardwired to the dir that we specified in build time:
gnumeric_data_dir = g_strdup (GNUMERIC_DATADIR);
the libdir, depends on something, which I don't quite understand, but finally it will wired to GNUMERIC_LIBDIR if the condition doesn't match.
May I know if it is a bug? Or intended for some reason?
I am going to fix it (in my own build at least), just want to know if it is a known issue or there is some reason behind ... Or I just missed something?