DataEngine in JavaScript: Help
Onur-Hayri Bakici
thehayro at gmail.com
Thu Jun 17 00:49:17 CEST 2010
Hey guys.
i have issues about running this code:
function sourceRequestEvent(source)
{
print("Test");
setData("Hello", "World");
return true;
}
function updateSourceEvent(source)
{
return true;
}
it doesnt do anything. not printing out test, nothing.
i already have plasma-scriptengines-javascript installed.
here is my metadata.desktop:
X-KDE-ServiceTypes=Plasma/DataEngine
Type=Service
X-Plasma-API=javascript
X-Plasma-MainScript=mediadataengine.js
X-Plasma-ComponentTypes=DataEngine
X-Plasma-EngineName=webmedia
X-KDE-Library=plasma_engine_webmedia
X-KDE-PluginInfo-Author=test
X-KDE-PluginInfo-Email=test at test.com
X-KDE-PluginInfo-Name=webmedia
X-KDE-PluginInfo-Version=0.1
X-KDE-PluginInfo-Website=http://plasma.kde.org/
X-KDE-PluginInfo-Category=Multimedia
X-KDE-PluginInfo-License=LGPL
X-KDE-PluginInfo-EnabledByDefault=true
i am also not quite sure, if i have the X-KDE-ServiceTypes correct, because
the plasma-scriptengine-dataengine-javascript.desktop in
kdebase/runtime/plasma/scriptengines/javascript
thank you in advance
cheers
thehayro
More information about the Plasma-devel
mailing list