mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
5251124f31
commit
b3d205ecb8
1 changed files with 4 additions and 3 deletions
|
@ -424,10 +424,11 @@ GSSystemRootDirectory(void)
|
|||
|
||||
/**
|
||||
* 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
|
||||
* 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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue