* Allow Containment plasmoids to be installed

svn path=/branches/KDE/4.4/kdebase/runtime/; revision=1095292
This commit is contained in:
Richard Dale 2010-02-23 23:10:45 +00:00
parent 5076541c65
commit b08edac797

View File

@ -137,7 +137,10 @@ int main(int argc, char **argv)
package.setPath(packageFile);
QString serviceType = package.metadata().serviceType();
if (!serviceType.isEmpty()) {
if (serviceType == "Plasma/Applet" || serviceType == "Plasma/PopupApplet") {
if ( serviceType == "Plasma/Applet"
|| serviceType == "Plasma/Containment"
|| serviceType == "Plasma/PopupApplet" )
{
type = "plasmoid";
} else if (serviceType == "Plasma/DataEngine") {
type = "dataengine";
@ -157,6 +160,7 @@ int main(int argc, char **argv)
servicePrefix = "plasma-applet-";
pluginTypes << "Applet";
pluginTypes << "PopupApplet";
pluginTypes << "Containment";
} else if (type == i18nc("package type", "theme") || type == "theme") {
packageRoot = "desktoptheme/";
} else if (type == i18nc("package type", "wallpaper") || type == "wallpaper") {