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

List:       kde-panel-devel
Subject:    Re: Creating new activity from "destkop console"
From:       Marco Martin <notmart () gmail ! com>
Date:       2013-09-12 13:38:42
Message-ID: 201309121538.42877.notmart () gmail ! com
[Download RAW message or body]

On Thursday 12 September 2013, Aaron J. Seigo wrote:
> On Friday, September 6, 2013 11:21:21 Nowardev-Team wrote:
> > Hi  i was creating\ testing an activity using desktop console
> > 
> > qdbus org.kde.plasma-desktop /MainApplication showInteractiveConsole
> 
> that's because between the time the scripting controls were put into place
> and now the way activities work changed. it is no longer managed by
> plasma-desktop but by kactivitymanagerd. this means that creating an
> "activity" with the scripting actually just creates a containment (which
> plasma-desktop will try to de-orphan into a new activity) ... this can
> cause problems.
> 
> for Plasma 2, the scripting needs updating to allow creation of activities
> properly as an API separate from the current API which is really for the
> creation and management of containments

in plasma1 the binding to activities is in the library, so doesn't have access 
to the private stuff of the plasma shell, otherwise it should somewhat wrap
PlasmaApp::createActivity()
Activity *desktopcorona::activity()
containment *Activity::containmentforscreen()

and *should* be it

in plasma2 the scripting support is all in the shell so should be easier

-- 
Marco Martin
_______________________________________________
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