I had a look at the dataengine. When loading it via plasmaenginexplorer it says &quot;package is in path which is a &quot;Plasmoid&quot; package&quot; .. This seems no good to me.<br>Can you point out what&#39;s wrong?<br>
<br>Also, are there any implementations of JS DataEngines to take inspiration from? As there&#39;s near to 0 docs about them. Or probably i wasn&#39;t able to find any.<br><br>Thanks.<br><br><div class="gmail_quote">2010/6/17 Onur-Hayri Bakici <span dir="ltr">&lt;<a href="mailto:thehayro@gmail.com">thehayro@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hey guys.<br>
<br>
i have issues about running this code:<br>
<br>
<br>
function sourceRequestEvent(source)<br>
{<br>
  print(&quot;Test&quot;);<br>
  setData(&quot;Hello&quot;, &quot;World&quot;);<br>
  return true;<br>
<br>
}<br>
<br>
function updateSourceEvent(source)<br>
{<br>
  return true;<br>
}<br>
<br>
it doesnt do anything. not printing out test, nothing.<br>
i already have plasma-scriptengines-javascript installed.<br>
<br>
here is my metadata.desktop:<br>
<br>
X-KDE-ServiceTypes=Plasma/DataEngine<br>
Type=Service<br>
<br>
<br>
X-Plasma-API=javascript<br>
X-Plasma-MainScript=mediadataengine.js<br>
X-Plasma-ComponentTypes=DataEngine<br>
<br>
X-Plasma-EngineName=webmedia<br>
X-KDE-Library=plasma_engine_webmedia<br>
X-KDE-PluginInfo-Author=test<br>
X-KDE-PluginInfo-Email=<a href="mailto:test@test.com">test@test.com</a><br>
X-KDE-PluginInfo-Name=webmedia<br>
X-KDE-PluginInfo-Version=0.1<br>
X-KDE-PluginInfo-Website=<a href="http://plasma.kde.org/" target="_blank">http://plasma.kde.org/</a><br>
X-KDE-PluginInfo-Category=Multimedia<br>
X-KDE-PluginInfo-License=LGPL<br>
X-KDE-PluginInfo-EnabledByDefault=true<br>
<br>
i am also not quite sure, if i have the X-KDE-ServiceTypes correct, because<br>
the plasma-scriptengine-dataengine-javascript.desktop in<br>
kdebase/runtime/plasma/scriptengines/javascript<br>
<br>
thank you in advance<br>
<br>
cheers<br>
thehayro<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Alessandro Diaferia<br>KDE Developer<br>KDE e.V. member<br><br>