Bug 231761 - Python plasmoids can no longer run from system directory
Summary: Python plasmoids can no longer run from system directory
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-22 13:28 UTC by Jonathan Riddell
Modified: 2010-03-29 15:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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