[Panel-devel] Plasma and Amarok

Aaron J. Seigo aseigo at kde.org
Mon Jul 16 21:12:16 CEST 2007


On Monday 16 July 2007, Maximilian Kossick wrote:
> > the downside to this approach is that, while simpler to use, it means
> > that it's an all-or-nothing approach ... it wouldn't be possible to use
> > DataEngines for plasma in amarok and vice versa as a side effect of
> > setting up separate applets.
>
> How about using additional constraints instead of changing the service
> type? Amarok could add a constraint [X-Plasma-Domain] == 'Amarok' to
> KTrader queries and only get results that were designed for Amarok. Plasma
> would not use the additional constraint and could load Amarok's Applets and
> Dataengines.

heh.. i was just talking with Ian on irc about this and sent a similar email. 
it certainly is an approach with merit and potential.

> Some of Amarok's dataengines are probably going to link to libamarok, so
> Plasma shouldn't load them...i'm not sure how to solve this...maybe another
> constraint?

this shouldn't be a problem, as dataengines are loaded on demand by applets. 
plasma doesn't load any engine until it is requested. moreover, if the 
dataengine exists, then its library dependencies also must exist ... the only 
issue would be one of overhead, unless libamarok operates under the 
assumption that only one copy of it is in use at a time (though i would 
imagine that is not the case)...

so as long as no applets that load an engine that links against libamarok are 
loaded, it's really a non-issue. personally, i'd like to see dataengines 
proliferate in this manner as it would make it easier to write desktop/panel 
components for specific applications.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20070716/d66b5f25/attachment.pgp 


More information about the Panel-devel mailing list