mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:50:37 +00:00
Updates to use NSSearchPathForDirectoriesInDomains()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8848 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fbd8d04432
commit
c1c64fa436
5 changed files with 37 additions and 58 deletions
|
@ -334,7 +334,6 @@ static NSString *disabledName = @".GNUstepDisabled";
|
|||
*/
|
||||
+ (GSServicesManager*) newWithApplication: (NSApplication*)app
|
||||
{
|
||||
NSDictionary *env;
|
||||
NSString *str;
|
||||
NSString *path;
|
||||
|
||||
|
@ -347,11 +346,8 @@ static NSString *disabledName = @".GNUstepDisabled";
|
|||
|
||||
manager = [GSServicesManager alloc];
|
||||
|
||||
env = [[NSProcessInfo processInfo] environment];
|
||||
str = [env objectForKey: @"GNUSTEP_USER_ROOT"];
|
||||
if (str == nil)
|
||||
str = [NSString stringWithFormat: @"%@/GNUstep",
|
||||
NSHomeDirectory()];
|
||||
str = [NSSearchPathForDirectoriesInDomains(NSUserDirectory,
|
||||
NSUserDomainMask, YES) objectAtIndex: 0];
|
||||
str = [str stringByAppendingPathComponent: @"Services"];
|
||||
path = [str stringByAppendingPathComponent: servicesName];
|
||||
manager->servicesPath = [path retain];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue