How to find a KService which is installed to the xdg_apps dir?

Waldo Bastian bastian at kde.org
Mon Sep 8 16:26:23 BST 2003


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

On Monday 08 September 2003 16:15, Cornelius Schumacher wrote:
> The configuration dialog in KitchenSync doesn't work anymore, because it
> doesn't find the KResources control module. Its desktop file is installed
> to the xdg_apps dir, but the KCMultiDialog which is used by KitchenSync
> doesn't find it, because it uses KService::serviceByDesktopPath() and this
> looks (according to the API docs) only below "services" and "applnk", not
> under "applications".

The API docs need some updating then (will do so). 

The problem is that it gets passed "Settings/Components/kresources.desktop" 
and that kresources.desktop no longer lives in that sub-directory.

> What's the correct fix for this problem? Extending the
> KService::serviceBy*() functions to also look up the xdg_apps dir, using
> another way in
> KCMultiDialog to find the desktop file or something completely different?

I'm in the process of adding KService::serviceByStorageId() which is able to 
find stuff like "Settings/Components/kresources.desktop" despite it being 
moved. I will change KCMultiDialog to use that.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/XJ+gN4pvrENfboIRAmjiAJ0UhdBctOMxNeeX2PRcN71cbwFJOgCgp8fZ
Y5Wd6cl3vXdANLw7MtoUEmA=
=IGfh
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list