From 46d40a1094d6b15af57bb284cd63dcdecdd2dd4a Mon Sep 17 00:00:00 2001 From: CaS Date: Wed, 13 Feb 2002 20:14:38 +0000 Subject: [PATCH] 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 --- Source/NSUser.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/NSUser.m b/Source/NSUser.m index d13138ebf..0d5ad7835 100644 --- a/Source/NSUser.m +++ b/Source/NSUser.m @@ -424,10 +424,11 @@ GSSystemRootDirectory(void) /** * Return the path of the defaults directory for name.
- * 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 * 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* GSDefaultsRootForUser(NSString *userName) @@ -481,7 +482,7 @@ userDirectory(NSString *name, BOOL defaults) if (defaults == YES) { path = [[[NSProcessInfo processInfo] environment] - objectForKey: @"GNUSTEP_DEFAULTS_DIRECTORY"]; + objectForKey: @"GNUSTEP_DEFAULTS_ROOT"]; } if (path == nil) {