From e7f0b463f94d84a4c3d3494a4a6bc6cc1b48c0c2 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Sun, 9 Jan 2022 18:58:46 -0700 Subject: [PATCH] FIX: macosx check case-insensitive app name Only check for "python" case insensitive to match either Python or pythonw. --- src/_macosx.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_macosx.m b/src/_macosx.m index 2beeda14722d..4a4381b72b78 100755 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -1118,7 +1118,7 @@ - (void)launch:(NSNotification*)notification CFRunLoopSourceRef source; NSDictionary* dictionary = [notification userInfo]; if (![[dictionary valueForKey:@"NSApplicationName"] - isEqualToString:@"Python"]) + localizedCaseInsensitiveContainsString:@"python"]) return; NSNumber* psnLow = [dictionary valueForKey: @"NSApplicationProcessSerialNumberLow"]; NSNumber* psnHigh = [dictionary valueForKey: @"NSApplicationProcessSerialNumberHigh"];