well that was an easy fix: make scripts work in apps !plasma, e.g. plasmoidviewer

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776978
This commit is contained in:
Aaron J. Seigo 2008-02-19 08:31:49 +00:00
parent b6767e1e39
commit 2aa51ef338

View File

@ -129,8 +129,9 @@ public:
// we have a scripted plasmoid
if (!language.isEmpty()) {
// find where the Package is
QString path = KStandardDirs::locate("appdata",
"plasmoids/" + appletDescription.pluginName() + '/');
QString path = KStandardDirs::locate("data",
"plasma/plasmoids/" + appletDescription.pluginName() +
"/");
if (path.isEmpty()) {
applet->setFailedToLaunch(true, i18n("Could not locate the %1 package required for the %2 widget.",