Control: tag -1 +pending Quoting Sylvain Terrien (2025-08-23 18:40:36) > With the proposed patch, interactively running hx --help just display > "$HOME/.cache" without resolving the variable. > > Looking deeper in the source code, it appears that helix reads the > XDG_CACHE_HOME environment variable, but the crate used to do that > (https://crates.io/crates/etcetera) requires the value to be a > syntaxically valid absolute path. However, according to my tests, > the path does not need to really exists. > > So I think a better approach would be to define this variable during > man page generation, to something like '/home/\$USER/.cache'. > > The advantage is that the source code remains unchanged, and so does > the program behavior. And I also imagine that defining an env var > in a debian specific build script would need less maintenance work, > in the long term, than a patch on upstream code.
Clever! Thanks to you both - I have now applied this fix, pending next release. -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ * Sponsorship: https://ko-fi.com/drjones [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature

