Trying to amend Sublime’s Info.plist to support a custom icon per file type. I’m on Catalina, which I get is a bit old, and with Big Sur around the corner, who knows if this amendment will still work.
I’ve added the following to Sublime’s Info.plist to try and force a custom icon for .txt files. The icns file is in /Resources/ like the app’s icon.
<key>UTImportedTypeDeclarations</key> <dict> <key>UTTypeConformsTo</key> <string>public.text</string> <key>UTTypeIdentifier</key> <string>public.plain-text</string> <key>UTTypeDescription</key> <string>Text File</string> <key>UTTypeIconFile</key> <string>sbl-txt.icns</string> <key>com.apple.ostype</key> <array> <string>TXT</string> <string>TEXT</string> </array> <key>public.mime-type</key> <string>text/plain</string> <key>public.filename-extension</key> <string>txt</string> </dict>
I’m not an app developer per se, so I’m not sure if maybe this block needs to go before/after some other block.
After making the change, I restarted Launch Services/Sublime/Finder but no luck, custom icon still not showing. Anyone have any ideas what I’m doing wrong?