[GNC-dev] Gnucash built from git doesn't start

Lothar Paltins lkpgcd at mailbox.org
Wed Oct 23 05:56:03 EDT 2019


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




More information about the gnucash-devel mailing list