extra properties in .desktop files

David Faure david at mandrakesoft.com
Mon Nov 18 16:53:03 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 18 November 2002 12:53, Pupeno wrote:
> I'm trying to store (and retrive) an extra property from a .desktop file that
> represents a service (a plug in in fact).
> The file is festival.desktop and contains an extra property called
> X-KDE-Languages (and I may have more extra properties) which represents the
> languages this plug in can handle (a list of codes separated by comas).
> But when I try to get it with KService::property(const QString& _name) it says
> kio (KService*): Request for unknown property 'X-KDE-Languages'. Am I doing
> something wrong ? can this be made ? if not, what do you recomend ?

You need to define the property in the .desktop file of the _servicetype_.
See the bottom of koffice/servicetypes/koplugin.desktop for an example.

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE92Rrv72KcVAmwbhARAouPAJ92EnGoY3Q7K2wodYSAYwAlQt8gIQCeIUx1
7K7NNHarM9Tryd8U8ieAtDo=
=tC/A
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list