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

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to