Fix STR #2890: MacOS unbundled applications don't appear in dock nor menu bar (cont'd).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-11-30 18:20:36 +00:00
parent 246157b51d
commit 4b6613cbd2
1 changed files with 1 additions and 1 deletions

View File

@ -1343,7 +1343,7 @@ void fl_open_display() {
// only transform the application type for unbundled apps
NSBundle *bundle = [NSBundle mainBundle];
if (bundle) {
NSString *exe = [bundle executablePath];
NSString *exe = [[bundle executablePath] stringByStandardizingPath];
NSString *bpath = [bundle bundlePath];
NSString *exe_dir = [exe stringByDeletingLastPathComponent];
if ([bpath isEqualToString:exe] || [bpath isEqualToString:exe_dir]) bundle = nil;