Plasma services within Javascript (Aaron J. Seigo)

Diego Casella ([Po]lentino) polentino911 at gmail.com
Wed Mar 9 12:17:25 CET 2011


> ---------- Messaggio inoltrato ----------
> From: "Aaron J. Seigo" <aseigo at kde.org>
> To: plasma-devel at kde.org
> Date: Wed, 9 Mar 2011 10:02:37 +0100
> Subject: Re: Plasma services within Javascript
> On Tuesday, March 8, 2011, Diego Casella ([Po]lentino) wrote:
> > Hey guys,
> >
> > after a long time without playing with scripted plasmoid, I've noticed
> that
> > using a Service is somewhat broken.
> > I've even tried to follow the steps descibed here [0], of course changing
> > the following line from
> > service = engine.serviceForSource("notification");
> >
> > to
> > service = plasmoid.service("notifications", "notification");
> >
> > but I'm still getting a "TypeError: Result of expression
> > 'plasmoid.service'[undefined] is not a function."
> > Does anybody know where I'm wrong?
>
> palsmoid.service does not exist.
> engine.serviceForSource does.
>
> iow, trust the error messages :)
>

hhmm ok, anyways the example listed in [0] is still not working. Hints about
this?


[0]
http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/CheatSheet#Notifications


>
> > Oh, an other thing, really strange: seems like the "X-Plasma-MainScript"
> > entry is completely ignored. I've tried to start a Js
> > plasmoid , but the previewer shows nothing unless I rename the main
> script
> > from "project_name.js" to "main" ( back in the old days,
> > I set plasmate to name the mainscript as "project_name.js", thus
> > "X-Plasma-MainScript=code/project_name.js", and we had never
> > encountered a problem like this).
> > This issues happens even wihtin plasmoidviewer, so perhaps something
> > changed inside Plasma?
>
> this is working just fine here ... what version of kdelibs and kde-runtime
> are
> you using?
>
>
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.
/me is still wondering why me and Yuen Hoe had the same issue yesterday ..
Yuen Hoe, can you please verify if the problem still persists after a
rebuild of kdelibs/kdebase-runtime?
Cheers!


> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Development Frameworks
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>


-- 
H: Who is Watson without Sherlock Holmes?
G: Watson was a genius in his own right.

My personal blog: http://polentino911.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20110309/3aac24c3/attachment.htm 


More information about the Plasma-devel mailing list