[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Plasma services within Javascript
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2011-03-09 9:02:37
Message-ID: 201103091002.38412.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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 :)
 
> 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?

-- 
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

["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic