Author: manolo
Date: 2012-11-30 10:20:36 -0800 (Fri, 30 Nov 2012)
New Revision: 9734
Log:
Fix STR #2890: MacOS unbundled applications don't appear in dock nor menu bar 
(cont'd).

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2012-11-26 11:59:14 UTC (rev 9733)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2012-11-30 18:20:36 UTC (rev 9734)
@@ -1343,7 +1343,7 @@
       // 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;

_______________________________________________
fltk-commit mailing list
fltk-commit@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to