use NSOpenStepRootDirectory instead of hard-coded /

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39512 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2016-03-09 23:19:54 +00:00
parent fe8bcb804b
commit bc3ead8d69

View file

@ -537,8 +537,6 @@ static NSDictionary *extPreferences = nil;
static NSString *urlPrefPath = nil;
static NSDictionary *urlPreferences = nil;
// FIXME: Won't work for MINGW32
static NSString *_rootPath = @"/";
/*
* Class methods
@ -748,7 +746,7 @@ static NSString *_rootPath = @"/";
forKey: NSHomeDirectory()];
/* it would be nice to use different root icons... */
[folderPathIconDict setObject: @"Root_PC" forKey: _rootPath];
[folderPathIconDict setObject: @"Root_PC" forKey: NSOpenStepRootDirectory()];
for (i = 0; i < [libraryDirs count]; i++)
{