summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-11-21 11:37:57 +0000
committerManolo Gouy <Manolo>2012-11-21 11:37:57 +0000
commit4b3855f8c563f8072b2c5a8232616f69d04c393c (patch)
treeee9ec8f317704dd8b6f8bc2ffa56a1211d0ef802 /src
parent84f374f8055c58a418f42d9acd43646c9e08c2ee (diff)
Fix STR #2890: MacOS 10.8 unbundled applications don't appear in dock nor menu bar
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index c1f809ca1..24e8770ab 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1345,7 +1345,8 @@ void fl_open_display() {
if (bundle) {
NSString *exe = [bundle executablePath];
NSString *bpath = [bundle bundlePath];
- if ([bpath isEqualToString:exe]) bundle = nil;
+ NSString *exe_dir = [exe stringByDeletingLastPathComponent];
+ if ([bpath isEqualToString:exe] || [bpath isEqualToString:exe_dir]) bundle = nil;
}
if ( !bundle )