try to work with ServiceTypes=Plasma/Applet,Plasma/PopupApplet

This commit is contained in:
Aaron Seigo 2011-12-19 15:19:15 +01:00
parent 183e794059
commit 43b46a57e3

View File

@ -257,9 +257,8 @@ int main(int argc, char **argv)
package.setPath(packageFile);
QString serviceType = package.metadata().serviceType();
if (!serviceType.isEmpty()) {
if (serviceType == "Plasma/Applet" ||
serviceType == "Plasma/Containment" ||
serviceType == "Plasma/PopupApplet") {
if (serviceType.contains("Plasma/Applet") ||
serviceType.contains("Plasma/Containment")) {
type = "plasmoid";
} else if (serviceType == "Plasma/DataEngine") {
type = "dataengine";