From 1045538ed0b1b966f03d4808ff4c907c29e543a3 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 30 Jan 2023 20:08:08 +0100 Subject: Fix launching of unbundled app from /tmp --- src/Fl_cocoa.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3