Bugfix: Plasma::PackageMetadata::read: Match the behavior of KService

Review Request #102404 - Created Aug. 22, 2011 and submitted

Information
Kevin Kofler
kdelibs
4.7
Reviewers
plasma
Also delete the duplicate entries in PackageMetadata::write.


This one is a bugfix, and so should be OK for 4.7.

While testing my GSoC work, I noticed that Plasma::PackageMetadata::read only looks for X-KDE-ServiceTypes, whereas KService concatenates the contents of ServiceTypes and X-KDE-ServiceTypes. There are metadata.desktop files out there using ServiceTypes without the X-KDE prefix.

I also fixed it to look for both Keywords and X-KDE-Keywords as KService does, not just Keywords.
Compiles on Fedora 15.
Kevin Kofler
Kevin Kofler
Aaron J. Seigo
Commit Hook
Kevin Kofler
Review request changed

Status: Closed (submitted)

Loading...