Base Directory Specification - XDG_*_DIRS syntax

Peter TB Brett peter at peter-b.co.uk
Wed Dec 28 08:58:13 PST 2011


Charles Suprin <hamaa1vs at gmail.com> writes:

> Since no-one else has brought this up, there are portability
> considerations.  There are colons in Windows paths.  The ever famous
> c:\.  Also old versions of Apple products used to use colons as well
> for directory separators. Perhaps the solution is to have the
> XDG_DATA_DIRS and XDG_CONFIG_DIRS stored as the native PATH variable.
> However others probably know better than I.

The obvious solution is to do the same as (all IIRC) other
searchpath-like environment variables, i.e. colon separators on most
platforms, and semicolons on Windows or obscure old Apple systems.

                    Peter

-- 
Peter Brett <peter at peter-b.co.uk>
Remote Sensing Research Group
Surrey Space Centre



More information about the xdg mailing list