Skip to content

Commit 76156a9

Browse files
authored
Merge pull request #22195 from greglucas/auto-backport-of-pr-22179-on-v3.5.x
Backport PR #22179 on branch v3.5.x (FIX: macosx check case-insensitive app name)
2 parents 10d305c + cdeb33a commit 76156a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_macosx.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1376,8 +1376,8 @@ - (void)launch:(NSNotification*)notification
13761376
CFMachPortRef port;
13771377
CFRunLoopSourceRef source;
13781378
NSDictionary* dictionary = [notification userInfo];
1379-
if (! [[dictionary valueForKey:@"NSApplicationName"]
1380-
isEqualToString:@"Python"])
1379+
if (![[dictionary valueForKey:@"NSApplicationName"]
1380+
localizedCaseInsensitiveContainsString:@"python"])
13811381
return;
13821382
NSNumber* psnLow = [dictionary valueForKey: @"NSApplicationProcessSerialNumberLow"];
13831383
NSNumber* psnHigh = [dictionary valueForKey: @"NSApplicationProcessSerialNumberHigh"];

0 commit comments

Comments
 (0)