[Bug 1744953] [NEW] mimetype prefer system mime database over user one
Thomas Preud'homme
thomas.preudhomme at arm.com
Tue Jan 23 15:06:22 UTC 2018
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 Ubuntu
Foundations Bugs, which is subscribed to libfile-mimeinfo-perl in
Ubuntu.
https://bugs.launchpad.net/bugs/1744953
Title:
mimetype prefer system mime database over user one
Status in libfile-mimeinfo-perl package in Ubuntu:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libfile-mimeinfo-perl/+bug/1744953/+subscriptions
More information about the foundations-bugs
mailing list