On Tue, Jan 6, 2009 at 11:51 PM, Jeff <email@example.com> wrote:
But the doc explicitely mentions variables, such as $XDG_CONFIG_HOME, from what I understood (correct me if I'm mistaken?). When they are present, it would be better to use them, I think.
Yep, but default is ~/.config . It's in the doc you linked to -> http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html
You may want to look at http://bazaar.launchpad.net/%7Ekiddo/specto/specto-jeff/annotate/head%3A/spectlib/util.py between lines 68 and line 88 for an example of exactly that; it uses the XDG environment variables if they are available, otherwise fallback to hardcoded .config or .cache paths.