mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:00:48 +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
262f141efc
commit
9b57dfdd7b
2 changed files with 5 additions and 9 deletions
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
* Source/GSTextStoarge.m: Add GSIMap option for minor performance
|
* Source/GSTextStoarge.m: Add GSIMap option for minor performance
|
||||||
improvement.
|
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>
|
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.
|
* Make sure that the users 'GNUstep/Services' directory exists.
|
||||||
*/
|
*/
|
||||||
str = [env objectForKey: @"GNUSTEP_USER_ROOT"];
|
usrRoot = [NSSearchPathForDirectoriesInDomains(NSUserDirectory,
|
||||||
if (str != nil)
|
NSUserDomainMask, YES) lastObject];
|
||||||
{
|
|
||||||
usrRoot = str;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
usrRoot = [sClass stringWithFormat: @"%@/GNUstep", NSHomeDirectory()];
|
|
||||||
}
|
|
||||||
|
|
||||||
mgr = [NSFileManager defaultManager];
|
mgr = [NSFileManager defaultManager];
|
||||||
if (([mgr fileExistsAtPath: usrRoot isDirectory: &isDir] && isDir) == 0)
|
if (([mgr fileExistsAtPath: usrRoot isDirectory: &isDir] && isDir) == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue