Bug#899337: libconfig-model-dpkg-perl: Please use XDG paths for user config and cache files

Guillem Jover guillem at debian.org
Wed May 23 01:52:13 BST 2018


Package: libconfig-model-dpkg-perl
Version: 2.111
Severity: wishlist
User: guardians at namespace.hadrons.org
Usertags: homespace-rift

Hi!

This package by default stores cache file directly under ~/, named as
«.config_model_depend_cache», and its config in either ~/.dpkg-meta.yml
or ~/.local/share/.dpkg-meta.yml. It would be nice if these could default
instead to the XDG basedir cache and config directories [X], using
properly namespaced paths, so that we can get a clean home directory. :)

The namespace would be ideally something like:

  ${XDG_CONFIG_HOME:-~/.config}/config-model/dpkg-meta.yml
  ${XDG_CACHE_HOME:-~/.cache}/config-model/dpkg-depend.cache

or something along those lines (File::HomeDir does have support for
my_config and my_cache methods on FreeDesktop supporting platforms).
The current usage of ~/.local/share/ seems wrong, both for the chosen
path and for using a dot dir within.

Given that actually moving these files around might be considered tricky,
if taking into account shared home directories, or backwards compatibility,
I think reading both XDG and legacy directories in that order, by default
would be fine.

[X] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Thanks,
Guillem



More information about the pkg-perl-maintainers mailing list