From 5c6ca9d88589b8835f0ece387c78c567bb10a91e Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sat, 15 Jan 2022 16:16:03 +0000 Subject: [PATCH] Revert "Backport PR #22179 on branch v3.5.x (FIX: macosx check case-insensitive app name)" --- src/_macosx.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_macosx.m b/src/_macosx.m index 5e70e975c138..8c7ac2366293 100755 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -1376,8 +1376,8 @@ - (void)launch:(NSNotification*)notification CFMachPortRef port; CFRunLoopSourceRef source; NSDictionary* dictionary = [notification userInfo]; - if (![[dictionary valueForKey:@"NSApplicationName"] - localizedCaseInsensitiveContainsString:@"python"]) + if (! [[dictionary valueForKey:@"NSApplicationName"] + isEqualToString:@"Python"]) return; NSNumber* psnLow = [dictionary valueForKey: @"NSApplicationProcessSerialNumberLow"]; NSNumber* psnHigh = [dictionary valueForKey: @"NSApplicationProcessSerialNumberHigh"];