Bug 112319

Summary: [PATCH] Resources configuration do not cascade
Product: [Unmaintained] kresources Reporter: Aurelien Gateau <agateau>
Component: frameworkAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: cpigat242
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Patch for KDE 3.5 branch

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!