Make NSDownloadDirectory and NSDocumentDIrectory relative to the user home and for the user domain only. Behaviour checked on the Mac.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-11-13 09:46:01 +00:00
parent a0e6eafd31
commit 7e15bd86df
2 changed files with 13 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2010-11-13 Riccardo Mottola
* Source/NSPathUtilities.m:
Make NSDownloadDirectory and NSDocumentDIrectory relative to the user home and for the user domain only. Behaviour checked on the Mac.
2010-11-05 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSIndex.m: ([-setUnitRef:type:]) Fix incorrect special

View file

@ -1,5 +1,5 @@
/* Implementation of filesystem & path-related functions for GNUstep
Copyright (C) 1996-2004 Free Software Foundation, Inc.
Copyright (C) 1996-2010 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <address@hidden>
Created: May 1996
@ -2028,19 +2028,18 @@ if (domainMask & mask) \
case NSDocumentDirectory:
{
ADD_PATH(NSUserDomainMask, gnustepUserLibrary, @"Document");
ADD_PATH(NSLocalDomainMask, gnustepLocalLibrary, @"Document");
ADD_PATH(NSNetworkDomainMask, gnustepNetworkLibrary, @"Document");
ADD_PATH(NSSystemDomainMask, gnustepSystemLibrary, @"Document");
/* this is relative to the user home annd for the user domain only
* verified on Macintosh
* despite the name it is Documents and not Document....
*/
ADD_PATH(NSUserDomainMask, gnustepUserHome, @"Documents");
}
break;
case NSDownloadsDirectory:
{
ADD_PATH(NSUserDomainMask, gnustepUserLibrary, @"Downloads");
ADD_PATH(NSLocalDomainMask, gnustepLocalLibrary, @"Downloads");
ADD_PATH(NSNetworkDomainMask, gnustepNetworkLibrary, @"Downloads");
ADD_PATH(NSSystemDomainMask, gnustepSystemLibrary, @"Downloads");
/* Be consistent with NSDocumentDirectory */
ADD_PATH(NSUserDomainMask, gnustepUserHome, @"Downloads");
}
break;