Bug 231761

Summary: Python plasmoids can no longer run from system directory
Product: [Plasma] plasma4 Reporter: Jonathan Riddell <jr>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: sgh
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonathan Riddell 2010-03-22 13:28:43 UTC
Version:            (using KDE 4.4.1)
OS:                Linux
Installed from:    Ubuntu Packages

In KDE 4.3 Python plasmoids could run when installed to /usr e.g.

/usr/share/kde4/services/plasma-widget-facebook.desktop
/usr/share/kde4/apps/plasma/plasmoids/facebook/metadata.desktop
/usr/share/kde4/apps/plasma/plasmoids/facebook/contents/code/main.py

In KDE 4.4 this does not happen, instead an error is given
plasma-desktop(1363)/libplasma Plasma::Package::isValid: Could not find required file mainscript , look in "/home/jr/.kde/share/apps/plasma/plasmoids/facebook/contents/code/main" 

strace confirms it does not look in /usr but only in ~/.kde

This means we can not package Python plasmoids
Comment 1 Søren Holm 2010-03-22 23:55:29 UTC
I can confirm that. Symlinking stuff to ~/.kde/share/apps/plasma/plasmoids solves it temporary.
Comment 2 Jonathan Riddell 2010-03-29 15:53:36 UTC
SVN commit 1108640 by jriddell:

Check for actual metadata file, else it will try to load the plasmoid from ~/.kde if only the directory exists even though the plasmoid might be in /usr
BUG:231761
"Python plasmoids can no longer run from system directory"



 M  +2 -1      applet.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1108640
Comment 3 Jonathan Riddell 2010-03-29 15:56:28 UTC
SVN commit 1108644 by jriddell:

backport 1108640
Check for actual metadata file, else it will try to load the plasmoid
from ~/.kde if only the directory exists even though the plasmoid
might be in /usr
BUG:231761
"Python plasmoids can no longer run from system directory"



 M  +2 -1      applet.cpp  


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