gnucash master: Multiple changes pushed

Geert Janssens gjanssens at code.gnucash.org
Sat Aug 26 16:44:34 EDT 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/bbea5061 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/2662f4bc (commit)
	 via  https://github.com/Gnucash/gnucash/commit/045ee429 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a153412e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/ae75bc96 (commit)
	from  https://github.com/Gnucash/gnucash/commit/20061559 (commit)



commit bbea5061a3d69f69fe4960ca8e6846e6f66ffe36
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Sat Aug 26 20:42:53 2017 +0200

    Extend environment file parsing to also parse environment.local
    
    This latter file can be created by the administrator next to the environment
    file in order to override parameters set in environment file.
    The reason for this is the environment file is always overwritten
    during installation, while environment.local is never touched by
    the installers. So making the changes in there ensures they persist
    acros gnucash updates.

commit 2662f4bca3ce05edc77e49e210245cd6aaa376b3
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Sat Aug 26 19:49:36 2017 +0200

    Mention GNC_DATA_HOME and AQBANKING_HOME in the environment file.

commit 045ee429bff37ea03dc18a8c8de5350972aa8f0d
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Sat Aug 26 19:43:05 2017 +0200

    Check GNC_DATA_HOME environment to override default userdata location.
    
    This replaces GNC_DOT_DIR as it was called in older gnucash releases.

commit a153412e5a8fca7519fadb62935bab797860fbcd
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Wed Aug 23 17:42:54 2017 +0200

    Use platform dependent locations for gnucash user's data (gnc_userdata_home)
    
    - Linux: use whatever the xdg spec dictates
    - Windows: use AppData(Roaming)
    - OS X/Quarz: use NSApplicationSupportDirectory special directory, which
                  typically resolves to $HOME/Library/Application Support
    
    If the preferred directory can't be used the code will fallback to
    $HOME/.gnucash (the old location) if it exists. It won't create it
    however. Instead if missing it will fall back to the platform's
    temporary directory.
    
    Code is added also to automatically migrate all data from the old
    location to the new (only the first time).

commit ae75bc963f18fd0b9a3a8333a9f2a93f503449df
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Tue Aug 22 16:33:34 2017 +0200

    Rewrite several file path routines to use boost::filesystem
    
    This is a basis for moving .gnucash to a more modern location for
    application specific user data (following the xdg spec).



Summary of changes:
 CMakeLists.txt                                     |   2 +-
 gnucash/environment.in                             |  31 +-
 gnucash/gnome-utils/gnc-file.c                     |   4 +-
 gnucash/gnome-utils/gnc-gnome-utils.c              |  14 +-
 gnucash/gnome/dialog-print-check.c                 |   6 +-
 gnucash/gnucash-bin.c                              |  33 +-
 gnucash/import-export/qif-imp/qif-guess-map.scm    |   4 +-
 .../report/report-gnome/gnc-plugin-page-report.c   |   2 +-
 gnucash/report/report-system/eguile-utilities.scm  |   2 +-
 gnucash/report/report-system/gnc-report.c          |   6 +-
 gnucash/report/report-system/html-style-sheet.scm  |   2 +-
 gnucash/report/report-system/report-collectors.scm |   1 -
 libgnucash/app-utils/gfec.c                        |   2 +-
 libgnucash/app-utils/gfec.h                        |   2 +-
 libgnucash/app-utils/gnc-exp-parser.c              |   2 +-
 libgnucash/core-utils/CMakeLists.txt               |   4 +-
 libgnucash/core-utils/Makefile.am                  |   8 +-
 libgnucash/core-utils/core-utils.i                 |   4 +-
 libgnucash/core-utils/core-utils.scm               |   2 +-
 libgnucash/core-utils/gnc-environment.c            | 107 +++--
 ...gnc-filepath-utils.c => gnc-filepath-utils.cpp} | 500 +++++++++++++--------
 libgnucash/core-utils/gnc-filepath-utils.h         |  25 +-
 libgnucash/core-utils/test/CMakeLists.txt          |   5 +-
 libgnucash/core-utils/test/Makefile.am             |  10 +-
 .../core-utils/test/test-resolve-file-path.c       |  25 +-
 .../test/test-userdata-dir-invalid-home.c          | 110 +++++
 libgnucash/core-utils/test/test-userdata-dir.c     | 205 +++++++++
 po/POTFILES.in                                     |   2 +-
 28 files changed, 844 insertions(+), 276 deletions(-)
 rename libgnucash/core-utils/{gnc-filepath-utils.c => gnc-filepath-utils.cpp} (52%)
 create mode 100644 libgnucash/core-utils/test/test-userdata-dir-invalid-home.c
 create mode 100644 libgnucash/core-utils/test/test-userdata-dir.c



More information about the gnucash-patches mailing list