[Kde-kiosk] are subdirs not working in cascading conffiles ?

Eric DECORNOD eric.decornod at ulpmm.u-strasbg.fr
Wed Feb 16 17:02:27 CET 2005


Le Mercredi 16 Février 2005 16:44, Waldo Bastian a écrit :
> > No, I just double checked that but KConfig handles that just fine. Do
> > make sure that the global files as well as the subdirectory are readable
> > by the user though.
> >
> > Maybe the pim developers have something to add to it, I notice that you
> > have already posted your question there was well. (I was about to suggest
> > that)
>
> Yes, I think I found your problem, kdelibs/kresources/managerimpl.cpp
> passes a full path to KConfig so KConfig will not do any cascading in this
> case.
>
> For kde-pim developers that are listening:
> See ManagerImpl::createStandardConfig() which creates a KConfig using
> defaultConfigFile( mFamily ) as argument, which does:
>  return locateLocal( "config",
>                       QString( "kresources/%1/stdrc" ).arg( family ) );
>
> Cascading would work just fine if the KConfig object was created with only
> QString( "kresources/%1/stdrc" ).arg( family ) as argument instead of the
> full path.
>
> Cheers,
> Waldo

  I've searched through the sources too and reached the same conclusions.

  I've stripped the locateLocal call in defaultConfigFile, rebuilt the package 
and the cascade worked...

  Then I've posted to kdepim list.

  Thanks.

Note to kiosk-team: I think there are some new 
KConfig(locateLocal("config",... in kde sources, some grep might help in 
spotting some of them.

-- 
Eric DÉCORNOD
Ingénieur en Développement d'Applications
ULP Multimédia
courriel: eric.decornod at ulpmm.u-strasbg.fr
-------------- next part --------------
An embedded message was scrubbed...
From: unknown sender
Subject: no subject
Date: no date
Size: 4968
Url: http://mail.kde.org/pipermail/kde-kiosk/attachments/20050216/8ada2bc1/Kde-pimcascading-config-filesandkresource.mht


More information about the kde-kiosk mailing list