runners: same .so, different configs?

Aaron J. Seigo aseigo at kde.org
Mon Nov 2 21:05:39 CET 2009


On October 31, 2009, Sebastian Kügler wrote:
> On Tuesday 27 October 2009 20:53:31 Sebastian Kügler wrote:
> > On Tuesday 27 October 2009 18:36:35 Aaron J. Seigo wrote:
> > > On October 27, 2009, Marco Martin wrote:
> > > > simply having 2 desktop files with different plugin names that load
> > > > the same library would work i think?
> > >
> > > yes; and then pluginName() would return which one it is. the trick
> > > would be to  then map from those names to URLs. it could be added to
> > > the .desktop files and then do a KServiceTypeTrader lookup for that
> > > Plasma/Applet entry and fetch it from there.
> >
> > Thanks, that was the missing piece of the puzzle in my head. :)
> >
> > This involves adding a new field to the Plasma/Applet service type, so
> > it's gotta be  something generic. Maybe "-Args" ... ? I can't just put
> > whatever in there...
> 
> This works for the wikipedia plugin (it's now the mediawiki plugin). We can
>  now just add a desktop file pointing at krunner_mediawiki and specify
>  X-Plasma-Args to be the api.php URL of the mediawiki in question. Pretty
>  cool actually.
> 
> Can I commit below patch to kdelibs?

sure..


-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20091102/d82d3e69/attachment.sig 


More information about the Plasma-devel mailing list