Give controlling environment variable a better name.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12528 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-02-13 20:14:38 +00:00
parent 9f085c7d53
commit 46d40a1094

View file

@ -424,10 +424,11 @@ GSSystemRootDirectory(void)
/** /**
* Return the path of the defaults directory for name.<br /> * Return the path of the defaults directory for name.<br />
* This uses the GNUSTEP_DEFAULTS_DIRECTORY or the GNUSTEP_USER_ROOT * This uses the GNUSTEP_DEFAULTS_ROOT or the GNUSTEP_USER_ROOT
* environment variable to determine the directory. If the user * environment variable to determine the directory. If the user
* has changed, the path for the new user will be based on a template * has changed, the path for the new user will be based on a template
* derived from the path for the original user. * derived from the path for the original user, substituting in
* the values returned by NSHomeDirectory() and NSUser()
*/ */
NSString* NSString*
GSDefaultsRootForUser(NSString *userName) GSDefaultsRootForUser(NSString *userName)
@ -481,7 +482,7 @@ userDirectory(NSString *name, BOOL defaults)
if (defaults == YES) if (defaults == YES)
{ {
path = [[[NSProcessInfo processInfo] environment] path = [[[NSProcessInfo processInfo] environment]
objectForKey: @"GNUSTEP_DEFAULTS_DIRECTORY"]; objectForKey: @"GNUSTEP_DEFAULTS_ROOT"];
} }
if (path == nil) if (path == nil)
{ {