Revision 871cccc...
Go back to digest for 3rd February 2013Bug Fixes in KDE Base
David Faure committed changes in [kdelibs] /:
Fix mimetype handling when a desktop file lists base and derived mimetype.
I had the following issue:
emacs.desktop says: MimeType=text/plain;text/x-csrc;
My mimeapps.list says: text/plain=kde4-kate.desktop;emacs.desktop;
(and has no entry for text/x-csrc)
When opening a text/plain file, kate is selected, no problem.
But when opening a text/x-csrc file, emacs is selected, against my
expectations. Discussed on the XDG list, Alexander Larsson and I agreed
that when a desktop file lists both the base and derived mimetype, we
should simply ignore the derived mimetype, it's redundant.
The code is a bit complex, so let's test this in master before a possible
backport (if any; I couldn't find a bug report about this).
File Changes
Modified 4 files
- kded/kbuildservicefactory.cpp
- kded/kmimeassociations.cpp
- kded/kmimeassociations.h
- kded/tests/kmimeassociationstest.cpp
4 files changed in total