From kde-devel Tue Sep 21 07:48:02 2010 From: Kevin Krammer Date: Tue, 21 Sep 2010 07:48:02 +0000 To: kde-devel Subject: Re: How to define QVariantList of KCModule via .desktop-files? Message-Id: <201009210948.08554.kevin.krammer () gmx ! at> X-MARC-Message: https://marc.info/?l=kde-devel&m=128505537626428 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0027292261==" --===============0027292261== Content-Type: multipart/signed; boundary="nextPart4032908.03LYvxNIh7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4032908.03LYvxNIh7 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday, 2010-09-21, Andriy Rysin wrote: > 2010/9/20 Matthias Fuchs >=20 > > Hi, > >=20 > > I have exported a KCModule and now want add an argument to its > > constructor via > > a desktop file. > >=20 > > The idea is that at compilation time it is not clear what the ui of the > > KCModule looks like or what KConfigSkeleton should be used. > >=20 > > Now if I can define at least one argument -- e.g. a file path, or just a > > name > > -- via the desktop file the module could look up what to do and how to = do > > this > > at runtime. > >=20 > > The reason I want to make this is that I create kross plugins that shou= ld > > be > > configureable comfortable via KPluginSelector. > >=20 > >=20 > > Cheers, > > matthias > >=20 > I was actually asking the same question couple of months ago, seems to be > currently there's no way to pass arguments, though as KCModule takes > arguments it'd make sense to be able to pass them in kcmshell4 and desktop > files. What about reading your KCM's .desktop file using KDesktopFile and checking= a=20 custom entry? Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart4032908.03LYvxNIh7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQBMmGMznKMhG6pzZJIRApLQAJ0TMQA5V9noEW+GNbMl6e2rNSgSOQCfY1BO AC9nKIsC5ryV6O+BvVunw0M= =zZnd -----END PGP SIGNATURE----- --nextPart4032908.03LYvxNIh7-- --===============0027292261== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0027292261==--