Open aspell-helper opened 5 years ago
Please implement, there is no downside to respecting users' preferences.
I think it would be a good idea, but there is the issue of migration when upgrading to a version (or build) that now expects the files in a different location than the previous version. I have not had the time to work out a good solution to the migration problem.
Most applications tend to look for the files in the specified location and then fall back to the legacy paths if they aren't found. Should make it seamless for users.
Yes, please do this. Managing old-school $HOME dotfiles is rather a pain; implementation of the XDG convention would be appreciated.
I think better paths will be:
${XDG_CONFIG_HOME:-~/.config}/aspell.conf
${XDG_DATA_HOME:-~/.local/share}/aspell/LL.prepl
${XDG_DATA_HOME:-~/.local/share}/aspell/LL.pws
I will at very least consider an option to use XDG paths instead of the legacy $HOME dotfiles. I will also provide a compile time option to make the XDG paths the default.
I think it would be a good idea, but there is the issue of migration when upgrading to a version (or build) that now expects the files in a different location than the previous version. I have not had the time to work out a good solution to the migration problem.
not really
the XDG specification recommends that the following is used for
That way an app updated by the user issuing apt update && apt upgrade (or equivalent) will not break an existing system
The existing user will continue to use the existing directory until he/she/?? moves the config manually.
No apps should be migrating the config directory on behalf of the user just because it changes where it wants to store them. Users won't find config directories go missing if they are not aware of XDG
The user can either:
@iandstanley
the XDG specification recommends that the following is used for
A citation is needed, the XDG Base Directory Specification as provided on specifications.freedesktop.org doesn't mention any of this as far as I can tell.
sorry I mispoke I meant to say that a lot of apps take that fallback position (I misread the fallback to the default .config dir which wouldn't help with backwards compatibility)
Just a few examples of this approach
https://git-scm.com/docs/git-config http://web.mit.edu/git/www/git-credential-store.html https://manpages.debian.org/testing/tig/tig.1.en.html
https://lists.gnu.org/archive/html/aspell-devel/2019-01/msg00000.html https://bugs.debian.org/900164