Revision: 28616 http://sourceforge.net/p/bibdesk/svn/28616 Author: hofman Date: 2024-01-15 18:45:13 +0000 (Mon, 15 Jan 2024) Log Message: ----------- don't us LS for mail app id
Modified Paths: -------------- trunk/bibdesk/NSWorkspace_BDSKExtensions.m Modified: trunk/bibdesk/NSWorkspace_BDSKExtensions.m =================================================================== --- trunk/bibdesk/NSWorkspace_BDSKExtensions.m 2024-01-15 18:22:58 UTC (rev 28615) +++ trunk/bibdesk/NSWorkspace_BDSKExtensions.m 2024-01-15 18:45:13 UTC (rev 28616) @@ -253,7 +253,8 @@ - (void)emailTo:(NSString *)receiver subject:(NSString *)subject body:(NSString *)body attachments:(NSArray *)files { NSMutableString *scriptString = nil; - NSString *mailAppID = CFBridgingRelease(LSCopyDefaultHandlerForURLScheme(CFSTR("mailto"))); + NSURL *appURL = [[NSWorkspace sharedWorkspace] URLForApplicationToOpenURL:[NSURL URLWithString:@"mailto://"]]; + NSString *mailAppID = appURL ? [[NSBundle bundleWithURL:appURL] bundleIdentifier] : @"com.apple.mail"; subject = [subject stringByBackslashEscapingDoubleQuotes]; body = [body stringByBackslashEscapingDoubleQuotes]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit