mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:10:38 +00:00
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:
parent
33e7efecea
commit
ac16f41d6f
3 changed files with 39 additions and 13 deletions
|
@ -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/"])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue