Skip to content

Add a script to find missing mimetypes icons. - #3952

Merged
SmartFinn merged 2 commits into
PapirusDevelopmentTeam:masterfrom
achadwick:missing-mimetypes-script
Mar 17, 2025
Merged

Add a script to find missing mimetypes icons.#3952
SmartFinn merged 2 commits into
PapirusDevelopmentTeam:masterfrom
achadwick:missing-mimetypes-script

Conversation

@achadwick

Copy link
Copy Markdown
Contributor

While working on #3904, I found myself wanting a script for discovering MIME types that don't have icons or symlinks yet. I thought I'd make one. This script scans the cached bits of the shared-mime-info database on the local device, and checks whether icons exist in the Papirus tree for those.

The idea is that only devs will use it; it's not part of any workflow, since it produces rather a lot of false positive output. By default, it flags anything defaulting to <type>-x-generic as a potential omission, after considering 1) named icons for the mimetype, 2) fallback icons for the exact mimetype string, and 3) named generic icons for the mimetype. Quite often, that's fine; at other times it's an indication that Papirus needs a more specific icon for the mimetype.

Ref:

Leaving this open for review for a bit.

@achadwick

Copy link
Copy Markdown
Contributor Author

First question is: is this helper script in the right folder? 😁

@SmartFinn

Copy link
Copy Markdown
Member

Wow! It's brilliant! Thank you.

@SmartFinn
SmartFinn merged commit bc13afe into PapirusDevelopmentTeam:master Mar 17, 2025
@achadwick
achadwick deleted the missing-mimetypes-script branch July 6, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants