Bug 493738

Summary: Markdown application preference forces KWrite
Product: [Applications] systemsettings Reporter: Jared Adams <jaxad0127>
Component: kcm_filetypesAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cspiegel, faure, john.kizer, nate
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jared Adams 2024-09-27 15:16:29 UTC
The Application Preference Order for Markdown files (text/markdown) forces KWrite to be the first or second entry. When apply is clicked with KWrite elsewhere in the list, it is moved to first or second.

Only Kate and Okular (okularApplication_md.desktop) can be above KWrite, but only one of them.
Comment 1 Chris Spiegel 2024-09-27 16:52:59 UTC
I'm seeing something similar; not sure if it's related, but the concept is the same.

In my case, KDE keeps putting qpdfview as the default PDF viewer, despite my constantly changing it to Okular.  When I set it to Okular, it works for a bit, and then eventually qpdfview is preferred (I suspect it's nothing specific to qpdfview; that just happens to be the one listed at the top).

In $HOME/.config/mimeapps.list, Okular is still listed at the top, even when qpdfview is being selected by KDE:

> [Added Associations]
> application/pdf=okularApplication_pdf.desktop;qpdfview.desktop;org.kde.calligra.karbon.desktop;microsoft-edge.desktop;google-chrome.desktop;brave-browser.desktop;vivaldi-stable.desktop;com.calibre_ebook.calibre.desktop;io.github.zen_browser.zen.desktop;com.calibre_ebook.calibre.ebook-viewer.desktop;org.pwmt.zathura-pdf-mupdf.desktop;

So it's not something as simple as that file being surreptitiously changed.

I updated to Plasma 6.1.5 on September 11, and Frameworks 6.6.0 on September 18.  It *feels* to me like the timing is more correlated with the Frameworks update than Plasma, but I can't be certain (and, there's no guarantee it's from either of those updates anyway).
Comment 2 Jared Adams 2024-09-27 17:24:25 UTC
Looking at the mameapps.list file locally, text/markdown has Ghostwriter first, then KWrite. But Dolphin and keditfiletype keep listing KWrite first. SO it is something in KDE reorganizing the list.
Comment 3 John Kizer 2024-12-23 05:57:23 UTC

*** This bug has been marked as a duplicate of bug 393700 ***