After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754925 - Store configuration and cache according to XDG specifications
Store configuration and cache according to XDG specifications
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Engine
2.6.7
Other Linux
: Normal enhancement
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2015-09-12 15:37 UTC by Christian Stadelmann
Modified: 2018-06-29 23:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Stadelmann 2015-09-12 15:37:24 UTC
In the old unix days applications stored all their configuration dirs and files in hidden directories under the users home dir. These worked well enough back then, since there weren't many applications storing stuff there. Nowadays however, there's typically about a hundred files and dirs in the users homedir.
The freedesktop organization took it into their hands to change this, and wrote a specification how to handle such data which can be found at: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
I propose that GnuCash follows the same guidelines, to remove the clutter from users homedirs by incorporating the basedir-spec as set by the freedesktop org, which would bring the config files into .config (the default for $XDG_CONFIG_HOME) .cache for caches etc.

See also: https://wiki.gnome.org/Initiatives/GnomeGoals/XDGConfigFolders
Comment 1 Geert Janssens 2017-08-26 20:20:51 UTC
Thanks for bringing this up.

It has taken me a while, but today I have committed the necessary changes to have gnucash use XDG_DATA_HOME to store the contents of .gnucash.

We have chosen XDG_DATA_HOME rather than XDG_CONFIG_HOME because most of the contents of the former .gnucash directory is really that - data: saved reports, gui saved state, custom report code,...

Gnucash doesn't use any cache so there was no need for .cache in our case.

These changes will land for gnucash 2.8.
Comment 2 John Ralls 2018-06-29 23:43:03 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=754925. Please update any external references or bookmarks.