> ---------- Messaggio inoltrato ---------- > From: "Aaron J. Seigo" <ase...@kde.org> > To: plasma-devel@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@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/
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel