Congcong Kuo <[email protected]> writes: > On 28 Jan 2026, at 4:53, Łukasz Stelmach wrote: > >> I've created two pull requests[1][2] on Codeberg. Alas I got little >> feedback, which they definitely need. >> >> The first one is about moving Guix dot-files to XDG directories. For now >> I've decided to put them in ~/.config, although I agree with >> anemofilia[3], that this may not be a good choice. However, I'd stick >> with it for now to solve any issues arising from the change of paths, >> and decide how to handle migration. Do share your suggestions. >> >> The latter request fixes problems with some tests hanging >> indefinitely. Please note, I am building guix on Debian trixie, >> which may or may not be the cause of the problem. The patch works for me >> of course, but I'd be glad to hear from soeone running Guix too. >> >> [1] https://codeberg.org/guix/guix/pulls/5357 >> [2] https://codeberg.org/guix/guix/pulls/5603 >> [3] https://codeberg.org/guix/guix/pulls/5357#issuecomment-9541547 > > I don’t like to make a breaking change. We can follow the pattern > that how emacs find init[1]. Emacs will looks at ~/.emacs.d, ~/.emacs, > and ~/.emacs.el firstly, then it will try to search at the XDG > location. Guix can look at the XDG location only if > $HOME/.guix-profile doesn’t exist.
Yes, it is my intention to make it in a backward compatible manner, so current users won't see any difference. Later it can be decided whether to deprecate the old location or not, but that is completely different story. I believe, I wrote the code to meet the goal, but, you know, I'd like others to take a look at it. > And XDG_CONFIG_HOME is not a suitable location. Normally all files in > this location is plain text files. Some people use tools to backup all > those files. I agree, and I wrote it in a comment on Codeberg. I followed ~/.guix/config/current. Probably both links shoud be in XDG_STATE_HOME (~/.local/state) but I started with ~/.config. If the code behaves correctly (is backward compatible) changing to ~/.local/state or any other path is trivial. > [1]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html -- Miłego dnia, Łukasz Stelmach
