diff options
| author | Manolo Gouy <Manolo> | 2012-11-30 18:20:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-11-30 18:20:36 +0000 |
| commit | 4b6613cbd22f4a2853e1aac07ac906bc0a11c96c (patch) | |
| tree | 8f4506091ab3951ec240db87d28e85f3e66d0d5b /src | |
| parent | 246157b51d3112492a1774cd983e31e83190865e (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
