Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to find missing mimetypes icons. #3952

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

achadwick
Copy link
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
Contributor Author

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

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.

1 participant