Comment 2 for bug 1890716

Revision history for this message
Alex A. D. (hinell) wrote : Re: xdg-mime query filetype index.html reports wrong type

Hi Sebastien. Thaks your for your reply.

I suggest you to do the following to see that even if file is starting with proper tags it is recognized as `application/x-perl`:

$ tee "index.html" <<eol
<!DOCTYPE html>
<html><body>use strict</body></html>
eol

$ xdg-mime query filetype index.html # -> application/x-perl - wrong type

Why did you tagged report as invalid?
I just got a file with minified JS code which has `use strict` burrowed deep somewhere inside correct html file but it's still recognized as perl script.

I can't use some tools to open the file in browser by using xdg-open and forced to use browser-specific launcher.