inconsistency in basedir spec install in $datadir, search elsewhere

Bollinger, John John.Bollinger at STJUDE.ORG
Wed Aug 28 13:53:06 UTC 2024


Hi Pat,

> I fully agree with that, but my point is that there is an need for
> an explaination in the specification that ensuring the consistency is
> outside of the scope of the specification, and maybe hint to some
> possible way to do it that are in the spirit of the specification
> in a open way.

If that is the direction you are proposing, then I think the problem is more that the spec says too much than that it says too little.  Where a program's data files are installed is indeed outside the scope of the spec.  Thus, the provisions you are looking at should not be expressed in terms of where files will be installed, but rather in terms of where the application will look for them.  Basically, the first two bullet points of the three in that section should simply be removed, leaving just:

      Other specifications may reference this specification by specifying the location of a data file as $XDG_DATA_DIRS/subdir/filename. This implies that lookups of the data file [will] search for ./subdir/filename relative to all base directories specified by $XDG_DATA_HOME and $XDG_DATA_DIRS . If [one of those] environment variable[s] is either not set or empty, its default value as defined by this specification [will] be used instead.


Best,

John Bollinger


________________________________

Email Disclaimer: www.stjude.org/emaildisclaimer
Consultation Disclaimer: www.stjude.org/consultationdisclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20240828/68f0a4e3/attachment-0001.htm>


More information about the xdg mailing list