Fix for opening files with relative paths.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17964 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-10-24 09:29:43 +00:00
parent 33e7efecea
commit ac16f41d6f
3 changed files with 39 additions and 13 deletions

View file

@ -1105,7 +1105,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
}
/**
* <p>Launches the specified application (unless it is alreeady running).<br />
* <p>Launches the specified application (unless it is already running).<br />
* If the autolaunch flag is yes, sets the autolaunch user default for the
* newly launched application, so that applications which understand the
* concept of being autolaunched at system startup time can modify their
@ -1528,7 +1528,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
}
else
{
path = [path stringByAppendingFormat: @"/%@", file];
path = [path stringByAppendingPathComponent: file];
}
}
@ -1644,7 +1644,8 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
*/
if (iconPath == nil)
{
iconPath = [[bundle bundlePath] stringByAppendingPathComponent: file];
iconPath = [[bundle bundlePath]
stringByAppendingPathComponent: file];
}
file = iconPath;
}
@ -1712,7 +1713,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
absolute = [[NSURL fileURLWithPath: [file stringByStandardizingPath]]
absoluteString];
// This compensates for a bug we have in NSURL, that is there to have
// This compensates for a feature we have in NSURL, that is there to have
// MacOSX compatibility.
if ([absolute hasPrefix: @"file://localhost/"])
{