Page 1 of 1

[SOLVED] Konqueror can't open locally saved web pages

PostPosted: Jul 18th, '24, 21:50
by kateto
Hi, the title says it all. I'm running Plasma 5.27.10 on Mageia 9, and I've set up Dolphin to open locally saved HTML files with Konqueror (23.04.3). However, it complains that it can't handle "application/x-extension-html" (whatever it is, instead of text/html). These are rather simple webpages.
It doesn't make any difference clicking in Dolphin or trying to open them from within Konqueror itself.
I know Konqueror is a dinosaur, but it's nice to browse local files without launching a full browser with all bells and whistles... :cry:

Re: Konqueror can't open locally saved web pages

PostPosted: Jul 18th, '24, 23:12
by sturmvogel
How do you create or save the html files?

kateto wrote:I know Konqueror is a dinosaur, but it's nice to browse local files without launching a full browser with all bells and whistles... :cry:

Sure....instead of using a browser you are using a browser/file manager/ftp client/fileviwer.....(that is konqueror).

Re: Konqueror can't open locally saved web pages

PostPosted: Jul 18th, '24, 23:15
by kateto
I save them with Chromium and Konqueror itself, it doesn't make any difference.

Re: Konqueror can't open locally saved web pages

PostPosted: Jul 20th, '24, 10:16
by kateto
Well, nobody helped, but I found the answer anyway.
It seems the cause were some bogus files like user-extension-html.xml created in the folder .local/share/mime/packages/ years ago, perhaps by Firefox being set as default web browser and messing up the MIME database.
The solution was this:
Code: Select all
$ rm ~/.local/share/mime/packages/user-extension-html.xml
$ update-mime-database ~/.local/share/mime

This way the bogus "application/x-extension-html" MIME type dissappears, the standard "text/hmtl" is used and the issue disappears.