Small problem with XDG_DATA_DIRS and XDG_CONFIG_DIRS

Fred Drake fdrake at
Sat Mar 19 02:29:32 EET 2005

On Fri, 18 Mar 2005 19:18:53 -0500 (EST), Behdad Esfahbod
<behdad at> wrote:
> I can think of one solution, but it has its own problem:  Treat
> any empty component of the list as the default values.  Then
> for example "/opt/share:" means "/opt/share" followed by the
> default list.

This is pretty much how TeX distributions allow the "default paths" to
be inserted into a search path.

I think this is a reasonable approach.  If more than one empty entry
is present, only the first needs to be filled in, and the remaining
empty entries can be ignored.


Fred L. Drake, Jr.    <fdrake at>

More information about the xdg mailing list