On Tuesday, August 9, 2011 03:16:49 you wrote: > need to restart plasma-desktopto make the new script run....How do I restart > plasma-desktop from withinthe student containment??
plasma-desktop does not need to restart. what is needed is to invoke
libplasmagenericshell's ScriptEngine::evaluateScript(). this is not exposed to
Containments, however .. and for good reasons :)
this should not use the full desktop scripting for this. instead, the
scripting from kde-runtime/plasma/kpart/scripting/ should be taken, adapted as
needed, and used from within the Classroom containment directly. note that it
too includes a ScriptEngine class.
the code flow would then end up looking something like the following
pseudocode:
script := loadScriptFromNetwork
if script is not empty
delete all widgets
ScriptEngine evaluateScript script
--
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
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/plasma-devel
