Declarative appletscript: last touches

Marco Martin notmart at gmail.com
Thu Dec 9 18:15:47 CET 2010


On Thursday 09 December 2010, Aaron J. Seigo wrote:
> On Wednesday, December 8, 2010, Marco Martin wrote:
> > On Thursday 09 December 2010, Aaron J. Seigo wrote:
> > > On Wednesday, December 8, 2010, Marco Martin wrote:
> > > > import "../../generic/ui/"
> > > 
> > > i take it that "../../generic/ui/" has to be a string literal in the
> > > QML file? and that it doesn't accept URLs (thereby going through the
> > > network access implementation)? if so, that would seem to be a major
> > > flaw in QML as it currently stands.
> > 
> > it is possible, however only for full folders.
> > now i'm using a way i didn't tought before:
> > 
> > import "plasmapackage:/ui/MeegoComponents"
> > 
> > in generic/ui there will be a MeegoComponents subfolder (in this case a
> > qmldirs file listing everything is needed) that folder will have a
> > fallback. it's better than nothing but still not overly pretty.
> 
> and we can always improve the underneath later, what's more important is
> having a non-fugly-api for the plasmoids we have to support forever on.
> 
> sounds like a reasonable compromise.

yeah, that is the main concern: avoid things that i will greaty repent in the 
future ;)
I'm now almost confortable with this, some other issues remain, like
layouts/widget bindings, happy to think this will be deprecated veery quickly, 
- but that is, seems the most acceptable transitional solution
- plasmoids are not sanboxed at all anymore: it is possible to import anyting 
from everybody (yes, a plasmoid could import kmail's pieces, both a great 
feature and a curse at the same time), including c++ plugis, -and- with 
absolute paths, but that has nothing we can do about it

Cheers,
Marco Martin


More information about the Plasma-devel mailing list