On Fri, Nov 27, 2026 at 01:35:41AM -0600, G. Branden Robinson wrote:
> At 2026-11-27T08:27:11+0100, Stefan Möding wrote:
> > I’m currently setting the following environment variables to keep that
> > feature without using $HOME:
> > 
> > export GROFF_TMAC_PATH=~/.local/share/groff/tmac
> > export GROFF_FONT_PATH=~/.local/share/groff/font
> > 
> > How about adding these locations to the default search paths for
> > macros and fonts?  Either $XDG_DATA_HOME or ~/.local/share if that
> > variable is undefined seems to be the preferred location nowadays.
> 
> I'm not at all opposed.  What do other folks think?
> 
> Regards,
> Branden
This seems reasonable, although I am slightly more inclined towards
${XDG_CONFIG_HOME:-~/.config}/groff -- the difference between these two
makes little difference so long as the user has _some_ default path to
put their custom files.

Perhaps this has already been discussed the last time this topic came
up, in which case I apologize, but I feel a bit iffy about removing the
old behaviour of looking in $HOME. I personally don't use it, but I
don't see any reason to completely remove this behaviour and require
that users relying on it set an env variable or flag in their groff
invocation. Like I said, maybe this has been covered in the last
discussion and maybe it is for some security reasons or something.

As one more note, I was wondering if there are plans, or even already
existing facilities of which I am ignorant, for user-level paths for
other config-ish files for preprocessors and the like. Specifically, I
am personally talking about eqnrc, as my solution has been to copy my
personal eqnrc into /usr/share/groff/site-tmac/ on machines I
administrate and simply suffer without my nice macros on machines that I
do not. There may be a facility for this (like some env variable) of
which I am ignorant and making things harder for myself, though.
-- 
S.

Reply via email to