Bug 112319 - [PATCH] Resources configuration do not cascade
Summary: [PATCH] Resources configuration do not cascade
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kresources
Classification: Unmaintained
Component: framework (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 16:36 UTC by Aurelien Gateau
Modified: 2024-08-11 18:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch for KDE 3.5 branch (4.23 KB, patch)
2005-09-09 16:37 UTC, Aurelien Gateau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Gateau 2005-09-09 16:36:31 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.5 
OS:                Linux

I created a file named $KDEDIR/share/config/kresources/contact/stdrc, which declared a dir resource but it was ignored. KDE only reads resources from the .kde dir. The attached patch fix this. I fixed two things:

1. Don't use locateLocal to find the config file, so that the one in $KDEDIR is not ignored.

2. Don't use General/ResourceKeys to get the list of resources. The problem of this KConfig entry is that it uses readListEntry, which is not "cascade-compliant": it won't merge the list from $KDEDIR and the list from .kde. Instead of this, I get the list of groups from KConfig.groupList() and remove those which do not start with Resource_. This way config-cascading works.

PS: The General/PassiveResourceKeys could also be removed, since all resources seems to have a ResourceIsActive entry. I didn't do it because I wanted to minimize the amount of changes.
Comment 1 Aurelien Gateau 2005-09-09 16:37:18 UTC
Created attachment 12514 [details]
Patch for KDE 3.5 branch
Comment 2 Reinhold Kainhofer 2006-11-02 19:08:08 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 3 Christoph Cullmann 2024-08-11 18:08:38 UTC
Dear reporter, the resources handling got redone for KF5 and KF6 based PIM applications.

If you still encounter the issues you had in the past, please report them to the current maintained and updated PIM applications you use

Thanks a lot!