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

Cornelius Schumacher schumacher at kde.org
Mon Sep 8 16:45:26 BST 2003


On Monday 08 September 2003 17:26, Waldo Bastian wrote:
> 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.

I tried to pass "kresources.desktop", "kde/kresources.desktop" and 
"applications/kde/kresources.desktop", but none of that worked. Would there 
have been a parameter which would have worked?

> > 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.

Great.

-- 
Cornelius Schumacher <schumacher at kde.org>





More information about the kde-core-devel mailing list