Fix to use correct user root.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-02-13 21:35:15 +00:00
parent 32f4e911ed
commit 8d1c5e8231
2 changed files with 5 additions and 9 deletions

View file

@ -2,6 +2,9 @@
* Source/GSTextStoarge.m: Add GSIMap option for minor performance
improvement.
* Tools/Make_services.m: Use correct user root. Noticed that this
tool needs fixing to use the correct paths as provided by the
NSSearchPathsForDirectoriesInDomains() function.
2002-02-13 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>

View file

@ -188,15 +188,8 @@ main(int argc, char** argv, char **env_c)
*
* Make sure that the users 'GNUstep/Services' directory exists.
*/
str = [env objectForKey: @"GNUSTEP_USER_ROOT"];
if (str != nil)
{
usrRoot = str;
}
else
{
usrRoot = [sClass stringWithFormat: @"%@/GNUstep", NSHomeDirectory()];
}
usrRoot = [NSSearchPathForDirectoriesInDomains(NSUserDirectory,
NSUserDomainMask, YES) lastObject];
mgr = [NSFileManager defaultManager];
if (([mgr fileExistsAtPath: usrRoot isDirectory: &isDir] && isDir) == 0)