OSX: Make sure to use the file system path name, not the URL name (#15038)

This commit is contained in:
warmenhoven 2023-02-28 20:01:46 -05:00 committed by GitHub
parent ec42d76035
commit 8f70da6b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);