views:

348

answers:

2

Does anyone know about good tutorials for developing KDE plasmoids in Javascript?

I have been going over the KDEBase Tutorials, but they have just few examples and not going into advanced techniques.

PS: Does nayone know, why "executable" dataengine is not working - e.g. I am not able to fetch any commands output?

+1  A: 

this works:

engine = dataEngine("executable");
engine.connectSource("df -h", plasmoid, 50);
plasmoid.dataUpdate = function(source,data)
{
label.text=data["stdout"];
}

also I have found some classes reference here - those could be use in JS as well: http://api.kde.org/4.x-api/kdelibs-apidocs/plasma/html/annotated.html

dusoft