← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 1744953] [NEW] mimetype prefer system mime database over user one

 

Public bug reported:

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.

** Affects: libfile-mimeinfo-perl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libfile-mimeinfo-perl in Ubuntu.
https://bugs.launchpad.net/bugs/1744953

Title:
  mimetype prefer system mime database over user one

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libfile-mimeinfo-perl/+bug/1744953/+subscriptions