From 2aa51ef33859d9058b467dff4f04c07462768168 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 19 Feb 2008 08:31:49 +0000 Subject: [PATCH] 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 --- applet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index 3a5317f73..a623dffd3 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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.",