Hey guys,<br><br>after a long time without playing with scripted plasmoid, I've noticed that using a Service is somewhat broken.<br>I've even tried to follow the steps descibed here [0], of course changing 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 'plasmoid.service'[undefined] is not a function."<br>
Does anybody know where I'm wrong?<br><br>Oh, an other thing, really strange: seems like the "X-Plasma-MainScript" entry is completely ignored. I've tried to start a Js<br>plasmoid , but the previewer shows nothing unless I rename the main script from "project_name.js" to "main" ( back in the old days,<br>
I set plasmate to name the mainscript as "project_name.js", thus
"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 changed inside Plasma?<br>Cheers<br><br>
Diego<br><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>
-- <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>