chmln / handlr

A better xdg-utils
MIT License
608 stars 24 forks source link

Prefer content based guessing to get MIME from file path #33

Closed Aetf closed 3 years ago

Aetf commented 3 years ago

Fix #32.

SharedMimeInfo::guess_mime_type already combines guesses from the filename, metadata, and content, so there is no need to do a filename based guess separately. Also, the result of guessing from the filename is always preferred, defeating the purpose of doing a content-based guess in the first place.