bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XDG dirs for texi2any


From: Patrice Dumas
Subject: Re: XDG dirs for texi2any
Date: Sat, 21 Sep 2024 00:43:56 +0200

On Fri, Sep 20, 2024 at 09:45:09PM +0100, Gavin Smith wrote:
> On Thu, Aug 29, 2024 at 09:11:20AM +0200, Patrice Dumas wrote:
> > I do not think that this is the right way to look at this.  To me the
> > logic is that we search both in "config" locations, as it is where the
> > system/user may place an htmlxref.cnf files, and we search there first,
> > and in "data", which is where the default from texi2any is installed.
> 
> It may be too complicated and confusing to look in both.  Do any other
> programs look for the same file in both "config" and "data" locations?

I think that I have seen that in discussions, but more importantly, it
makes sense and it is our practice.

> The current draft of the documentation lists 13 different locations
> that are checked which is a bit overwhelming.

Indeed, I agree that it is too much.  I propose to drop the hardcoded
paths, leading to (after the locations in *HOME):

XDG_CONFIG_DIRS/texinfo
$sysconfdir/texinfo/ or $sysconfdir/xdg/texinfo/
XDG_DATA_DIRS/texinfo
$datadir/texinfo/

We won't follow exactly the XDG base directory standard, but it is
better, in my opinion to be consistent with installation paths.

If this is ok, there remains to decide
$sysconfdir/texinfo/ or $sysconfdir/xdg/texinfo/

I have no real preference.

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]