On 2016-09-06 17:07:07 -0400, Sergio Durigan Junior wrote: > What Desktop Environment are you using?
I do not use any desktop environment (just fvwm as my window manager). If I use "xdg-mime query filetype ...", I get text/html. So, this does not explain Midori's behavior. In the strace output, I can see that ~/.local/share/mime/application/x-extension-html.xml is opened. It contains: <?xml version="1.0" encoding="utf-8"?> <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-extension-html"> <!--Created automatically by update-mime-database. DO NOT EDIT!--> <comment>html document</comment> <glob pattern="*.html"/> </mime-type> So, this comes from the shared-mime-info package. I wonder why type="application/x-extension-html" and not type="text/html", but ideally, the real MIME type should be obtained by sniffing, not by using the extension. Perhaps it is the intent of the generic application/x-extension-html? -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)