@EdwardTorvalds I just tried xdg-open on an html file, and it opened in Chrome, while a .js file opened in Kate. Same in Dolphin.
KDE Frameworks 5.63.0
@EdwardTorvalds Create a new user and login with it. If it's messed up there too, your distro has an issue. If it works fine, then your home as an issue. Start deleting (or renaming) stuff under ~/.cache, ~/.local or ~/.config until you find the culprit.
I'd begin with .config/mimeapps.list...
@codewiz I tried deleting .config/mimeapps.list, but it did not solve the problem. Also I don't have time to mess with my system anymore, I just want it to work like magic.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!