Fix Services dir

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-04-28 02:47:09 +00:00
parent 0de7e778fe
commit 4277f13318
4 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2003-04-27 Adam Fedor <fedor@gnu.org>
* Source/GSServicesManager.m (+newWithApplication:) Change
Services to Library/Services.
* Source/NSWorkspace.m (+initilize): Idem.
* Tools/make_services.m (main): Idem.
2003-04-27 Adam Fedor <fedor@gnu.org>
* Updates for filesystem change.

View file

@ -366,7 +366,7 @@ static NSString *disabledName = @".GNUstepDisabled";
str = [NSSearchPathForDirectoriesInDomains(NSUserDirectory,
NSUserDomainMask, YES) objectAtIndex: 0];
str = [str stringByAppendingPathComponent: @"Services"];
str = [str stringByAppendingPathComponent: @"Library/Services"];
path = [str stringByAppendingPathComponent: servicesName];
manager->_servicesPath = [path copy];
path = [str stringByAppendingPathComponent: disabledName];

View file

@ -327,7 +327,7 @@ static NSString *_rootPath = @"/";
NSUserDomainMask,
YES)
objectAtIndex: 0]
stringByAppendingPathComponent: @"Services"];
stringByAppendingPathComponent: @"Library/Services"];
/*
* Load file extension preferences.

View file

@ -204,7 +204,7 @@ main(int argc, char** argv, char **env_c)
str = usrRoot; /* Record for adding into roots array */
usrRoot = [str stringByAppendingPathComponent: @"Services"];
usrRoot = [str stringByAppendingPathComponent: @"Library/Services"];
if (([mgr fileExistsAtPath: usrRoot isDirectory: &isDir] && isDir) == 0)
{
if ([mgr createDirectoryAtPath: usrRoot attributes: nil] == NO)