On Wed, Aug 10, 2011 at 5:19 PM, Aaron J. Seigo <ase...@kde.org> wrote:
> 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. > > ah... okay! :) > 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 > > -- regards, Karan Pratap Singh
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel