Bug 236258

Summary: Plasma/Superkaramba doesn't work in 4.4.3
Product: [Plasma] plasma4 Reporter: WiseLord <wiselord1983>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: This patch resolves a problem.

Description WiseLord 2010-05-04 02:07:32 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Today I installed kde-4.4.3 and found that my favourite superkaramba vidget doesn't work as plasmoid. Plasma couldn't find path of plasmoid (but it was in plasmoid list).

Error was in kdelibs package, in file kdelibs-4.4.3/plasma/applet.cpp.
Here is the differences between 4.4.2 and 4.4.3 in this file:

--- kdelibs-4.4.2/plasma/applet.cpp	2010-03-26 19:24:32.000000000 +0200
+++ kdelibs-4.4.3/plasma/applet.cpp	2010-04-29 22:52:24.000000000 +0300
@@ -2585,7 +2585,8 @@
         // find where the Package is
         QString path = packagePath;
         if (path.isEmpty()) {
-            path = KStandardDirs::locate("data", "plasma/plasmoids/" + appletDescription.pluginName() + '/');
+            path = KStandardDirs::locate("data", "plasma/plasmoids/" + appletDescription.pluginName() + "/metadata.desktop");
+            path.replace(QString("/metadata.desktop"),QString("/"));
         } else if (!path.endsWith('/')) {
             path.append('/');
         }

When I recompiled kdelibs-4.4.3 with this file from 4.4.2 all became work fine.
Comment 1 WiseLord 2010-05-04 02:10:54 UTC
Created attachment 43206 [details]
This patch resolves a problem.

Patch returnes applet.cpp from kdelibs-4.4.3 to its 4.4.2 variant.
Comment 2 Aaron J. Seigo 2010-05-04 05:19:10 UTC
SVN commit 1122503 by aseigo:

Riddell's commit to fix broken installations (and i think it's still something of a bad hack, tbh) broke ALL OTHER WIDGET TYPES. fail.
this fixes that.
BUG:236258


 M  +7 -3      applet.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1122503