SUMMARY For reasons unknown to me, some KDE applications (e.g. Okular) have multiple .desktop files for different filetypes. Okular, for example, has `okularApplication_md.desktop` and `okularApplication_txt.desktop`, along with many others. This causes an issue in that all Markdown (.md) files are also plain text (.txt) files. So if you try to open a Markdown file, you'll see Okular twice in the list of possible applications. Unless applications are supposed to *never* have multiple .desktop entries, KDE needs to deduplicate these. It appears that the way KDE applications are indicating the use of multiple .desktop entries is via the use of the `X-KDE-AliasFor` line, e.g. X-KDE-AliasFor=org.kde.okular.desktop Similarly, if a user assigns an application to a file type (e.g. I have Okular set to open PDF files), and the application also inherits the file type via a different .desktop file (e.g. okularApplication_pdf.desktop), the application will be shown twice for the file. KDE should most likely only add the first entry that appears in its search with a specific alias to the applications that can open a given file type. STEPS TO REPRODUCE 1. Make a simple Markdown (.md) file. 2. Right click the file and see what applications Dolphin gives you to open it. OBSERVED RESULT Okular appears in the list twice. EXPECTED RESULT Okular appears in the list once. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.93.0 KDE Frameworks Version: 5.249.0 Qt Version: 6.7.0 Kernel Version: 6.7.4-arch1-1 (64-bit) Graphics Platform: Wayland
Can reproduce on plasma 6 source build -- okular shows up twice when right clicking .md files in dolphin. Not sure which component this should be assigned to though.
Can also reproduce.
One has to wonder if we should propose AliasFor as standard key given the uses that suddenly pop up for it.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1560