diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-30 20:08:08 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-30 20:08:18 +0100 |
| commit | 1045538ed0b1b966f03d4808ff4c907c29e543a3 (patch) | |
| tree | 466d91380f6b26b1ac5666e3d4b1f3f7fe76dde5 /src | |
| parent | 95f926fd0191c6d1db93028e1134799f46f5506e (diff) | |
Fix launching of unbundled app from /tmp
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 9f195892a..748f686d2 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1688,8 +1688,9 @@ static BOOL is_bundled() { NSBundle *bundle = [NSBundle mainBundle]; if (bundle) { NSString *exe = [[bundle executablePath] stringByStandardizingPath]; - NSString *bpath = [bundle bundlePath]; + NSString *bpath = [[bundle bundlePath] stringByStandardizingPath]; NSString *exe_dir = [exe stringByDeletingLastPathComponent]; +//NSLog(@"exe=%@ bpath=%@ exe_dir=%@",exe, bpath, exe_dir); if ([bpath isEqualToString:exe] || [bpath isEqualToString:exe_dir]) value = 0; } else value = 0; } |
