From bfa17ff3b99b0944d9571a9463902689c8f574e8 Mon Sep 17 00:00:00 2001 From: Shaurya Swarup <116101909+ShauryaSwarup@users.noreply.github.com> Date: Thu, 8 Oct 2026 06:42:50 +0530 Subject: [PATCH] macOS: declare PDF by UTI so Open With recommends PrintCraft (#176) CFBundleDocumentTypes listed PDF by extension and MIME type only. LaunchServices keeps those as plain tags (.pdf, application/pdf) instead of resolving them to com.adobe.pdf, so Finder greys the app out under Open With > Recommended Applications and a forced open fails with 'cannot open files in the PDF document format'. Add LSItemContentTypes com.adobe.pdf (keeping extension and MIME for backward compatibility). Role stays Editor, rank stays Alternate, so the app is offered without hijacking the default. Verified with lsregister -dump: bindings change from '.pdf, application/pdf' to 'com.adobe.pdf' with claimed UTIs com.adobe.pdf; plutil -lint and xmllint --noout pass. Follow-up to #73. Co-authored-by: Brandon Thomas --- packaging/macos/Info.plist.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/macos/Info.plist.in b/packaging/macos/Info.plist.in index 4934f733..fad9c97e 100644 --- a/packaging/macos/Info.plist.in +++ b/packaging/macos/Info.plist.in @@ -47,7 +47,8 @@ CFBundleDocumentTypes @@ -58,6 +59,8 @@ Editor LSHandlerRank Alternate + LSItemContentTypes + com.adobe.pdf CFBundleTypeExtensions pdf CFBundleTypeMIMETypes