mimetype prefer system mime database over user one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libfile-mimeinfo-perl (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Local database for mime types is looked up *after* the system one, so user cannot override the system database.
* How to reproduce *
I have a user mime entry for .dot files to recognize it as a graphviz file, since the system mime database list 2 conflicting entries (word template and graphviz file). mimetype query default <some dot file> gives:
<some dot file>: application/
However, XDG_DATA_
<some dot file>: text/vnd.graphviz
Note: I don't know if XDG_DATA_DIRS is supposed to have highest priority last, but File::MimeInfo.pm reverse reverse the list of data dirs before processing the mime type info and select the first match.
I'm using libfile-
Best regards.