Am 23.10.19 um 06:14 schrieb John Ralls:
That function does search, using the path set in $GNC_MODULE_PATH, and cmake writes that into 
<prefix>/etc/gnucash/environment. But if you specify <prefix> to be /opt/... or 
/usr/... in which case the <prefix> part is dropped and it goes to /etc/opt or just /etc 
respectively (see https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html). The defect in 
GnuCash's code is that it doesn't trap that SYSCONFDIR adjustment so it doesn't load the 
environment file, doesn't set GNC_MODULE_PATH, and so can't find the modules.

I think there are two issues. The environment file should be installed to the directory /etc/opt/gnucash/ and not to /etc/opt/gnucash/gnucash/. And gnucash should know, where it's installed and load it from there.

Lothar


_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to