Plasmaoid development in Javascript

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

I do KDEBase Tutorials, but they only have a few examples and do not go into advanced methods.

PS: Does anyone know why the "executable" dataengine does not work - for example, I can not execute the output of any commands?

+3
source share
2 answers

it works:

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

In addition, I found links to some classes that can be used in JS: http://api.kde.org/4.x-api/kdelibs-apidocs/plasma/html/annotated.html

+5
source

Source: https://habr.com/ru/post/1716492/


All Articles