Review Request: Implement automatic scanning of source code for required data engines

Kevin Kofler kevin.kofler at chello.at
Tue Sep 27 23:01:03 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102350/
-----------------------------------------------------------

(Updated Sept. 27, 2011, 11:01 p.m.)


Review request for Plasma.


Changes
-------

* Added support for declarativeappletscript QML code (tested on telepathy-kde-presence-applet).
* plasma-dataengine-depextractor: Make sure we pass an absolute path to KDesktopFile (use QDir::absoluteFilePath instead of QDir::filePath), because relative paths are interpreted as relative to applnk rather than to the current directory.


Description
-------

For packages in scripting languages and distributed through OCS, this is fully
automatic and triggered from Package::installPackage. If an
X-Plasma-RequiredDataEngines entry is present in the .desktop file (even if
empty), the dependency extraction is not run and the explicitly provided
information is trusted instead.

For native distribution packages, we ship a tool called
plasma-dataengine-depextractor which can be run at any time during the build
process and which adds the dependency information to the relevant .desktop file.

Authors of plasmoids are encouraged to run plasma-dataengine-depextractor and/or
fill in X-Plasma-RequiredDataEngines manually. (Please note that the list is
expected to be comma-separated.)

This is the final portion of my GSoC 2011 project.


Diffs (updated)
-----

  plasma/CMakeLists.txt f929967 
  plasma/depextractor/depextractor.cpp PRE-CREATION 
  plasma/package.cpp 4c00d36 
  plasma/private/componentinstaller.cpp 870667f 
  plasma/private/componentinstaller_p.h f85cbb6 

Diff: http://git.reviewboard.kde.org/r/102350/diff/diff


Testing
-------

Compiles on Fedora 15.

Tested plasma-dataengine-depextractor on the weather plasmoid, it detected the dependency on the weather dataengine correctly and wrote a valid X-Plasma-RequiredDataEngines entry into the .desktop file.


Thanks,

Kevin Kofler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20110927/6a62c936/attachment.html>


More information about the Plasma-devel mailing list