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

Skip to content

Commit e7f0b46

Browse files
committed
FIX: macosx check case-insensitive app name
Only check for "python" case insensitive to match either Python or pythonw.
1 parent b3f61d1 commit e7f0b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_macosx.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ - (void)launch:(NSNotification*)notification
11181118
CFRunLoopSourceRef source;
11191119
NSDictionary* dictionary = [notification userInfo];
11201120
if (![[dictionary valueForKey:@"NSApplicationName"]
1121-
isEqualToString:@"Python"])
1121+
localizedCaseInsensitiveContainsString:@"python"])
11221122
return;
11231123
NSNumber* psnLow = [dictionary valueForKey: @"NSApplicationProcessSerialNumberLow"];
11241124
NSNumber* psnHigh = [dictionary valueForKey: @"NSApplicationProcessSerialNumberHigh"];

0 commit comments

Comments
 (0)