Ignore the path to the application when extracting the port name.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17974 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-10-25 10:56:00 +00:00
parent 12ea75e949
commit fca20ea849
2 changed files with 7 additions and 1 deletions

View file

@ -2083,7 +2083,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
host = @"";
}
}
port = [appName stringByDeletingPathExtension];
port = [[appName lastPathComponent] stringByDeletingPathExtension];
/*
* Try to contact a running application.
*/