gnucash unstable: Simplify filepath init code

Geert Janssens gjanssens at code.gnucash.org
Thu Feb 1 13:17:56 EST 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/2f16b092 (commit)
	from  https://github.com/Gnucash/gnucash/commit/d345624c (commit)



commit 2f16b092f5f1115550484b9853adea082fbd269b
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Thu Feb 1 19:17:17 2018 +0100

    Simplify filepath init code
    
    It will no longer attempt to use /home/janssege/.gnucash. That was
    requiring lots of extra conditions.
    It will also default to a base directory (gnc_data_home) in the
    build dir if it detects the code is run during building or testing.
    That again allows to simplify it as there's no need for temp dir
    juggling in case the build environment doesn't have a writable home dir.



Summary of changes:
 gnucash/gnucash-bin.c                              |   6 +-
 libgnucash/core-utils/gnc-filepath-utils.cpp       | 156 ++++++++++-----------
 libgnucash/core-utils/gnc-filepath-utils.h         |  11 +-
 .../test/test-userdata-dir-invalid-home.c          |  30 ++--
 libgnucash/core-utils/test/test-userdata-dir.c     | 155 ++++++++++++--------
 5 files changed, 201 insertions(+), 157 deletions(-)



More information about the gnucash-patches mailing list