<div dir="ltr"><div class="gmail_default" style="font-size:small">On 4 October 2016 at 20:34, Maxwell Anselm <span dir="ltr"><<a href="mailto:silverhammermba@gmail.com" target="_blank">silverhammermba@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div style="font-size:small">On 3 October 2016 at 21:09, Maxwell Anselm <span dir="ltr"><<a href="mailto:silverhammermba@gmail.com" target="_blank">silverhammermba@gmail.com</a>></span> wrote:</div></span><span class=""><div class="gmail_extra"><div class="gmail_quote"><div><div style="font-size:small">I'm unclear whether you think that /usr/bin/file <i>should</i> not be used by xdg-mime (in which case, fair enough, I guess), or simply that it currently provides the wrong types or mis-identifies files too readily.</div></div></div></div></span></div></blockquote><div><br></div><div>file is a fine tool for what it intends to do, but since it does *not* intend to implement the standard it does not make sense as a fallback. For example, the shared MIME-info database allows for specifying MIME type according to the internal root and namespace of an XML file. Unless the file devs are willing to push an update for every single esoteric XML format out there, xdg-mime could end up behaving incorrectly.</div><div><br></div><div>If xdg-mime and xdg-open implement the standard themselves there would be no need for any external fallback.</div></div></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small;display:inline">Unless I've misunderstood something, there might well be file formats formats that file can identify which another implementation cannot, even if xdg-mime and xdg-open do implement the standard, simply because of the range of formats covered by their database. So the use of file could still be complementary.</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">There's also some scope for getting file to pull namespaces out of XML files. I'm not sure what you mean by an "esoteric XML format"; surely there's only one definition of XML? Or are you saying that such XML files would not actually contain their MIME type, so it would still have to be recognised somehow?</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><a href="http://rrt.sc3d.org" target="_blank">http://rrt.sc3d.org</a></div>
</div></div>