This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dolphin frequently inferring wrong filetype from extension

Tags: None
(comma "," separated)
justice
Registered Member
Posts
2
Karma
0
For some file types, Dolphin is inferring the wrong mime type. The extension is correct, the content is correct (as determined by /usr/bin/file), but the file type is wrong.

Code: Select all
$ file db.html
db.html: HTML document, ASCII text, with very long lines, with CRLF, LF line terminators


Screenshot of issue here (not inline due to width restriction)
https://i.imgur.com/vE3PKd6.png.

Not sure if this is a misconfiguration or a hard-to-reproduce bug. I'm on Ubuntu 18.04, Plasma 5.12.7. I've tried purging and reinstalling dolphin, and have verified that the system association for text/html is correct.

Any suggestions?
User avatar
zachus
Registered Member
Posts
56
Karma
0
OS

wrong filetype from extension

Sun Dec 16, 2018 7:46 pm


justice
Registered Member
Posts
2
Karma
0
As per the linked image, the problem is that I have an association between file extension .html and mimetype x-perl.

Your suggestion is about altering a mimetype's application handler. But I don't want to modify the application/x-perl mimetype, that's just fine. I want html to be associated with mimetype text/html.
User avatar
zachus
Registered Member
Posts
56
Karma
0
OS

screenie

Mon Dec 24, 2018 5:08 pm
justice wrote:I want html to be associated with mimetype text/html.


looking at the screenshot: Is "html" listed as one of the filename-extensions for perl-files?

besides: A mess-up like this happens quite frequently. I had it many times myself. Don't believe anyone who claims otherwise.




Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot]