From 4b6613cbd22f4a2853e1aac07ac906bc0a11c96c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 30 Nov 2012 18:20:36 +0000 Subject: 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 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 24e8770ab..cdf981319 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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; -- cgit v1.2.3