[GNC] XDG_CONFIG_HOME

Geert Janssens geert.gnucash at kobaltwit.be
Mon Apr 16 17:23:09 EDT 2018


Op maandag 16 april 2018 22:12:55 CEST schreef Alen Siljak:
> Michael,
>  
> if you look at the v3.0 release notes, it states that
> "Data file directories are now located appropriately to the operating
> system's conventions by default: Windows: CSIDL_APPDATA/Gnucash
> MacOS: $HOME/Application Support/Gnucash
> Linux: $XDG_CONFIG_HOME/gnucash (or the default $HOME/.config/gnucash)
> It's still possible to overried with the environment variable GNC_DOC_PATH,
> which replaces GNC_DOT_DIR in earlier versions of GnuCash." 
> So, the config directory has changed. On Windows, it used to default to
> ~/.gnucash but not any more. I don't have a Windows system at hand so can't
> give you the exact default location. 

Unfortunately there's one error in that announcement: it should be 
GNC_DATA_HOME instead of GNC_DOC_PATH. And this only works to override 
$HOME/.local/share/gnucash (and equivalents on the other platforms)
As I wrote in my reply to Michael, there is currently no way to override
$HOME/.config/gnucash (or the equivalents on other platforms).

> Geert,
>  
> I still find it strange that, even though there is no XDG variable that
> points to ~/.local/share, gnucash directory is still located there.
> I mean,
> there is no XDG_CONFIG_HOME nor XDG_DATA_HOME set on my system. There must
> be other standards (you know what's good about standards? There's so many
> of them). 

I did mention this as well: if no XDG variable is set, the specification 
dictates which default directories to use. And that's exactly what gnucash 
does. Feel free to read the full specification, I had added a link to it in my 
original reply.

Geert




More information about the gnucash-user mailing list