mimetype prefer system mime database over user one

Bug #1744953 reported by Thomas Preud'homme on 2018-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libfile-mimeinfo-perl (Ubuntu)
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/msword-template

However, XDG_DATA_DIRS=/usr/share:/home/thopre01/.local/share /usr/bin/mimetype <some dot file> gives:

<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-mimeinfo-perl version 0.27-1.

Best regards.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers