mirror of https://github.com/fltk/fltk
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:
parent
246157b51d
commit
4b6613cbd2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue