mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
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:
parent
32f4e911ed
commit
8d1c5e8231
2 changed files with 5 additions and 9 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue