Store configuration and cache according to XDG specifications #390
Comments
Hi, thanks for filing the issue. We'll have a look at it and try to incorporate it into version 1.0 that should come out in the coming months. P. S. I am attaching the |
I think we can safely move the cache. |
@genodeftest how will this work on Mac OS or perhaps old Linuxes that don't support this? Will we have to preserve the current behaviour for these cases? |
The XDG specification defines fallbacks for operating systems that don't support this. See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables , e.g.: I think the hardest part is about the transition of moving existing configs to new paths. |
Note: What's currently stored in ~/.devassistant is not only configuration, but mostly code (=assistants). |
I'm ok with this for purposes of cache and perhaps config files (if we have any in future). Assistants themselves should stay in |
I guess assistants should be moved to |
Ok, that sounds reasonable. |
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 Devassistant 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
The text was updated successfully, but these errors were encountered: