mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
improve handling of user domain paths
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30998 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4848c265e9
commit
02677e687b
3 changed files with 240 additions and 83 deletions
|
@ -517,39 +517,90 @@ notice and this notice are preserved.
|
|||
of no name.<br />
|
||||
System paths are defined by the following:
|
||||
</p>
|
||||
<deflist>
|
||||
<term>GNUSTEP_SYSTEM_ROOT</term>
|
||||
<desc>
|
||||
Obsolete.
|
||||
Used to specify the GNUstep system root directory ... all
|
||||
system libraries, tools, applications, headers, resources
|
||||
in general are located relative to this.
|
||||
</desc>
|
||||
<term>GNUSTEP_NETWORK_ROOT</term>
|
||||
<desc>
|
||||
Obsolete. Used to specify the GNUstep root directory for local
|
||||
(non-system) resources that are intended to be shared
|
||||
across a local network. Typically this is an NFS exported
|
||||
directory shared by many machines. It provides an
|
||||
alternative to GNUSTEP_LOCAL_ROOT but is usually defined
|
||||
to the same value.
|
||||
</desc>
|
||||
<term>GNUSTEP_LOCAL_ROOT</term>
|
||||
<desc>
|
||||
Obsolete. Used to specify the GNUstep root directory for local
|
||||
(non-system) resources. Typically all locally produced
|
||||
or contributed software is installed relative to this.
|
||||
</desc>
|
||||
</deflist>
|
||||
<deflist>
|
||||
<term>GNUSTEP_SYSTEM_APPS</term>
|
||||
<desc>This is where System GUI Applications get installed.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Applications.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_ADMIN_APPS</term>
|
||||
<desc>This is where System GUI Applications that only the
|
||||
Administrator can use get installed.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Applications/Admin.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_WEB_APPS</term>
|
||||
<desc>This is where System Web Applications (GSWeb, SOPE) get
|
||||
installed.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Library/WebApplications.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_TOOLS</term>
|
||||
<desc>This is where System Command-Line Tools get installed.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Tools.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_ADMIN_TOOLS</term>
|
||||
<desc>This is where System Command-Line Tools that only the
|
||||
Administrator can use get installed. Important: this
|
||||
should not be in the PATH of normal users.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Tools/Admin.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_LIBRARY</term>
|
||||
<desc>This is where System resources get installed.
|
||||
This directory will contain a lot of executable code
|
||||
since *step traditionally likes to
|
||||
bundle executables and resources together.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Library.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_HEADERS</term>
|
||||
<desc>This is where System headers get installed. They are the
|
||||
library .h headers.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Library/Headers.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_LIBRARIES</term>
|
||||
<desc>This is where System libraries get installed.
|
||||
By libraries we mean the shared/static object files that
|
||||
you can link into programs.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Library/Libraries.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_DOC</term>
|
||||
<desc>This is where System documentation get installed.
|
||||
This is known not to contain any executable, so we keep
|
||||
it separate.<br />
|
||||
Traditionally it is /usr/GNUstep/System/Library/Documentation.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_DOC_MAN</term>
|
||||
<desc>This is where System man pages get installed.<br />
|
||||
Traditionally it is
|
||||
/usr/GNUstep/System/Library/Documentation/man.
|
||||
</desc>
|
||||
<term>GNUSTEP_SYSTEM_DOC_INFO</term>
|
||||
<desc>This is where System info pages get installed.<br />
|
||||
Traditionally it is
|
||||
/usr/GNUstep/System/Library/Documentation/info.
|
||||
</desc>
|
||||
</deflist>
|
||||
<p>
|
||||
Paths for each user are defined by the following:
|
||||
In addition to the above SYSTEM domain paths, there are
|
||||
corresponding LOCAL, NETWORK, and USER domain paths (with the
|
||||
same names except for replacing 'SYSTEM' with 'LOCAL', 'NETWORK',
|
||||
or 'USER'.<br />
|
||||
All these paths must be absolute, except for the USER domain
|
||||
paths which, if not absolute, are considered to be with the
|
||||
user's home directory.<br />
|
||||
NB. as a special case a path may begin with './' or '../' when
|
||||
it is to be resolved to an absolute path relative to the
|
||||
location of the GNUstep configuration file.
|
||||
So while such paths appear to be relative, they actually produce
|
||||
absolute locations at runtime since the location of the
|
||||
configuration file is known.<br />
|
||||
Finally, for paths in the USER domain only, a limited substitution
|
||||
into the path is performed at runtime as follows:<br />
|
||||
'%u' is replaced by the user name<br />
|
||||
'%i' is replaced by the user ID<br />
|
||||
'%%' is replaced by a single '%'<br />
|
||||
</p>
|
||||
<p>
|
||||
Other paths for each user are defined by the following:
|
||||
</p>
|
||||
<deflist>
|
||||
<term>GNUSTEP_USER_DIR</term>
|
||||
<desc>Obsolete.
|
||||
Path for user specific GNUstep resources (eg. 'GNUstep').
|
||||
Relative to the user's home directory.
|
||||
</desc>
|
||||
<term>GNUSTEP_USER_CONFIG_FILE</term>
|
||||
<desc>Name of user configuration file (eg. '.GNUstep.conf')
|
||||
relative to the user's home directory.<br />
|
||||
|
@ -558,7 +609,7 @@ notice and this notice are preserved.
|
|||
</desc>
|
||||
<term>GNUSTEP_USER_DEFAULTS_DIR</term>
|
||||
<desc>Name of directory for user defaults files.
|
||||
Relative to the user's home directory.<br />
|
||||
Always relative to the user's home directory except:<br />
|
||||
On mswindows this may be set to be ':REGISTRY:' to have defaults
|
||||
stored in the windows registry rather than in the standard file
|
||||
format.<br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue