Make config file location settable in environment by default.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22599 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-03-05 18:00:44 +00:00
parent af2633e650
commit f2f9b79bd7
4 changed files with 169 additions and 303 deletions

View file

@ -330,15 +330,16 @@ notice and this notice are preserved.
<term>GNUSTEP_CONFIG_FILE</term>
<desc>
<p>
This has no effect unless the base library has been
configured/built with the
<code>--enable-environment-config-file</code> option.<br />
This functionality may have been disabled if the base library
was configured/built with the
<code>--disable-environment-config-file</code> option.<br />
If it is operational, the environment variable overrides the
normal path to the gnustep config file used to determine the
locations of paths for the gnustep system (see later).<br />
This is provided to support the odd situation where you may
want to simultaneously run applications using different sets
of resources but linked to a lingle copy of the base library.
of resources but linked to a single copy of the base library,
or you want to use an alternative config file for some reason.
</p>
</desc>
<term>HOMEDRIVE</term>
@ -602,8 +603,8 @@ notice and this notice are preserved.
<p>
Secondly, If the value of the path built in to the base library
as the location of the config file (or specified by
the GNUSTEP_CONFIG_FILE environment variable if that option
was enabled when the base library was configured)
the GNUSTEP_CONFIG_FILE environment variable unless that option
was disabled when the base library was configured)
begins with a dot and slash (./) then the path used for that
file is made relative to the base library.<br />
ie the text after the dot-slash is appended to the path of the