View previous topic :: View next topic |
Author |
Message |
guido-pe n00b
Joined: 10 May 2004 Posts: 72
|
Posted: Fri Sep 08, 2023 5:11 pm Post subject: Plasma no longer recognizes HTML files after Perl updates |
|
|
On monday, I ran emerge -uvaDN world on my computer, which ended up merging 181 packages, most of them related to Perl. Ever since then, Plasma will no longer properly recognize HTML files. When I view the file properties, the MIME-type of those files is given as "application/x-extension-html". I never checked what mimetype it was before, but I'm assuming it was probably "text/html", since that would be the correct mimetype for HTML.
This has a number of negative consequences for me:
- Neither icons nor previews are shown for HTML files any more.
- When I click on an HTML file, it is opened in a hex editor (okteta) instead of a text editor.
- Most importantly for me, I can no longer open HTML files in editable mode inside of kdevelop.
These things all worked earlier on monday, and then broke in the middle of a session, after emerge finished. As far as I can tell, only HTML files are affected, all other filetypes are still recognized just as before.
By manually adding a text editor to the new "application/x-extension-html" file type, I can still edit them in a text editor, but most of the defaults or special behavior that exists for HTML files is just gone or broken.
There is a file /usr/share/mime/text/html.xml on my computer that really looks like it ought to work. According to its mtime, it was definitely written during that round of updates on monday, and then again today after another round of updates, along with most other files in that directory. However, equery belongs comes up with nothing. (Presumbly because it was locally auto-generated after the install of another packages.)
I am out of ideas how to deal with that. Does anybody have any ideas what might be going on here or how to diagnose that further? |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1697
|
|
Back to top |
|
|
guido-pe n00b
Joined: 10 May 2004 Posts: 72
|
Posted: Sat Sep 09, 2023 11:46 pm Post subject: |
|
|
sam_ wrote: | There's a chance this is bug 913854. Could you try dev-perl/MIME-tools-5.510.0-r1 please?. |
I don't have any version of that package installed. I just installed this version with emerge -v1, and having that package installed does not seem to make a difference.
That was indeed my post.
That really was the bug, and the workaround in the linked bug report did solve my problem. For posterity, I ran:
Code: | $ rm ~/.local/share/mime/packages/user-extension-*
$ update-mime-database ~/.local/share/mime |
Thank you for the pointers, I would never have found that alone! |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1697
|
Posted: Mon Sep 11, 2023 9:20 pm Post subject: |
|
|
Happy to have helped & thanks for the conclusion! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|