[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: runners: same .so, different configs?
From: Sebastian =?iso-8859-1?q?K=FCgler?= <sebas () kde ! org>
Date: 2009-11-01 1:41:51
Message-ID: 200911010241.52201.sebas () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
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?
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
["runner-arg-servicetype.diff" (text/x-patch)]
Index: plasma/data/servicetypes/plasma-runner.desktop
===================================================================
--- plasma/data/servicetypes/plasma-runner.desktop (revision 1042986)
+++ plasma/data/servicetypes/plasma-runner.desktop (working copy)
@@ -74,3 +74,5 @@
[PropertyDef::TryExec]
Type=QString
+[PropertyDef::X-Plasma-Args]
+Type=QStringList
["signature.asc" (application/pgp-signature)]
_______________________________________________
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