XQuartz: Stop checking version numbers of the bundle because CFBundleGetVersionNumber is gimpish
(cherry picked from commit 9f5bdd8960
)
This commit is contained in:
parent
7958f6b75b
commit
77099b933a
|
@ -96,20 +96,6 @@ static void set_x11_path() {
|
|||
exit(3);
|
||||
}
|
||||
|
||||
ver = CFBundleGetVersionNumber(bundle);
|
||||
if( !(ver >= 0x02308000 || (ver >= 0x02168000 && ver < 0x02208000))) {
|
||||
CFStringRef versionStr = CFBundleGetValueForInfoDictionaryKey(bundle, kCFBundleVersionKey);
|
||||
const char * versionCStr = "Unknown";
|
||||
|
||||
if(versionStr)
|
||||
versionCStr = CFStringGetCStringPtr(versionStr, kCFStringEncodingMacRoman);
|
||||
|
||||
fprintf(stderr, "Xquartz: Could not find a new enough X11.app LSFindApplicationForInfo() returned\n");
|
||||
fprintf(stderr, " X11.app = %s\n", x11_path);
|
||||
fprintf(stderr, " Version = %s (%x), Expected Version > 2.3.0 or 2.1.6\n", versionCStr, (unsigned)ver);
|
||||
exit(9);
|
||||
}
|
||||
|
||||
strlcat(x11_path, kX11AppBundlePath, sizeof(x11_path));
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "Xquartz: X11.app = %s\n", x11_path);
|
||||
|
|
Loading…
Reference in New Issue