| Summary: | File Associations without an asterisk in the regular expression lose associated application. | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Evert Vorster <evorster> |
| Component: | kcm_filetypes | Assignee: | David Faure <faure> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | major | CC: | meven29, nate, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.1 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | mimeapps.list with the issue | ||
|
Description
Evert Vorster
2023-02-28 09:39:47 UTC
Funny thing, now these associations have started surviving reboots. I'll keep an eye on this, and if it still keeps working for a week or so I'll close the bug. :) This problem is now completely gone. Since this is a rolling update system, there was probably an update that fixed it, but I would not know which one. Thanks, everybody, for looking This is happening again, now. I posted a quick video of it to Youtube: https://youtu.be/slNl3TSXJ6s This issue is becoming more frequent, and it looks like file associations are forgotten/changed whenever anything updates the file association table. I have never seen behavior like this in KDE, and it may very well be down to something I am doing different. Normally file associations have an asterisk in the definition, like *.txt so that it would match any file that ends with ".txt" In my case, there is no asterisk, as I want to match the entire file name exactly. In my case, if there is a file called "dosbox-x.conf" in a directory, when I click on that file I want the default action to be to run dosbox-x in the directory where the file is residing, and in the context menu I want to have Kate, so that I can edit this text file. When I just add an asterisk in front of "dosbox-x.conf" this strange behavior goes away. OK, so I was a bit optimistic there, and my file associations are still disappearing randomly. Here is a video clip showing it happening in real time: https://youtu.be/uI4HLHXOmwc I can't reproduce the bug exactly the way you have, but there is definitely a major issue here. I can reproduce the issue by adding Dolphin to the apps list of the newly-created doxbox entry; when I click Apply, all apps disappear. This is 100% reproducible for me. While investigating, I also ran into Bug 468512. Not sure they're related, but it also looks fishy. I tracked down my issues to what I suspect was a corrupted mimeapps.list Anything that would re-create the mime database would trigger these associations to be lost. Following https://wiki.archlinux.org/title/XDG_MIME_Applications i discovered where the mimetype overrides are kept. So I deleted both the current and depreciated copies, then made a new file association. Once that was completed, I linked the default mimeapps.list to the depreciated location, as suggested on that page. Now I can't trigger the issue anymore, I guess after years of messing with file associations it was time to clear them out and start fresh? I hope this helps someone with the same issues. For now I will close this ticket. Good catch. However sending us a copy of the corrupted file would have helped us make the code more robust :-) Created attachment 158229 [details]
mimeapps.list with the issue
I honestly don't think it will help much. but just in case, here is the mimeapps.list that was causing the issue.
|