From 8f70da6b0c606a31444808ba825ed563d0f4129d Mon Sep 17 00:00:00 2001 From: warmenhoven Date: Tue, 28 Feb 2023 20:01:46 -0500 Subject: [PATCH] OSX: Make sure to use the file system path name, not the URL name (#15038) --- frontend/drivers/platform_darwin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/drivers/platform_darwin.m b/frontend/drivers/platform_darwin.m index 6fc3ef0837..7c46115106 100644 --- a/frontend/drivers/platform_darwin.m +++ b/frontend/drivers/platform_darwin.m @@ -343,7 +343,7 @@ static void frontend_darwin_get_env(int *argc, char *argv[], return; bundle_url = CFBundleCopyBundleURL(bundle); - bundle_path = CFURLCopyPath(bundle_url); + bundle_path = CFURLCopyFileSystemPath(bundle_url, kCFURLPOSIXPathStyle); CFStringGetCString(bundle_path, bundle_path_buf, sizeof(bundle_path_buf), kCFStringEncodingUTF8); CFRelease(bundle_path); CFRelease(bundle_url);