Question

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?

Was it helpful?

Solution

this works:

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top