<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">---------- Messaggio inoltrato ----------<br>From: "Aaron J. Seigo" <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>><br>
To: <a href="mailto:plasma-devel@kde.org">plasma-devel@kde.org</a><br>Date: Wed, 9 Mar 2011 10:02:37 +0100<br>Subject: Re: Plasma services within Javascript<br>On Tuesday, March 8, 2011, Diego Casella ([Po]lentino) wrote:<br>
> Hey guys,<br>
><br>
> after a long time without playing with scripted plasmoid, I've noticed that<br>
> using a Service is somewhat broken.<br>
> I've even tried to follow the steps descibed here [0], of course changing<br>
> the following line from<br>
> service = engine.serviceForSource("notification");<br>
><br>
> to<br>
> service = plasmoid.service("notifications", "notification");<br>
><br>
> but I'm still getting a "TypeError: Result of expression<br>
> 'plasmoid.service'[undefined] is not a function."<br>
> Does anybody know where I'm wrong?<br>
<br>
palsmoid.service does not exist.<br>
engine.serviceForSource does.<br>
<br>
iow, trust the error messages :)<br></blockquote><div><br>hhmm ok, anyways the example listed in [0] is still not working. Hints about this?<br><br><br>[0] <a href="http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/CheatSheet#Notifications">http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/CheatSheet#Notifications</a><br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
> Oh, an other thing, really strange: seems like the "X-Plasma-MainScript"<br>
> entry is completely ignored. I've tried to start a Js<br>
> plasmoid , but the previewer shows nothing unless I rename the main script<br>
> from "project_name.js" to "main" ( back in the old days,<br>
> I set plasmate to name the mainscript as "project_name.js", thus<br>
> "X-Plasma-MainScript=code/project_name.js", and we had never<br>
> encountered a problem like this).<br>
> This issues happens even wihtin plasmoidviewer, so perhaps something<br>
> changed inside Plasma?<br>
<br>
this is working just fine here ... what version of kdelibs and kde-runtime are<br>
you using?<br>
<br></blockquote><div><br>Oh this is kind of weird. Last night I recompiled KDE (last time I did it was sunday night), and now it's working good.<br>/me is still wondering why me and Yuen Hoe had the same issue yesterday ..<br>
Yuen Hoe, can you please verify if the problem still persists after a rebuild of kdelibs/kdebase-runtime?<br>Cheers!<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
--<br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Qt Development Frameworks<br>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>H: Who is Watson without Sherlock Holmes?<br>G: Watson was a genius in his own right.<br><br>My personal blog: <a href="http://polentino911.wordpress.com/" target="_blank">http://polentino911.wordpress.com/</a><br>
<br>