Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdeb33a

Browse files
timhoffmgreglucas
authored andcommitted
Backport PR #22179: FIX: macosx check case-insensitive app name
1 parent 60f98e1 commit cdeb33a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_macosx.m

Lines changed: 2 additions & 2 deletions
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)