KGlobal::config() issue
Helio Chissini de Castro
helio at kde.org
Tue Aug 19 20:17:06 BST 2008
On Tuesday 19 August 2008 15:53:19 Helio Chissini de Castro wrote:
> Hi
>
> Testing kiosk and external profiles, i fall down in some issue that i can't
> identify if this have the proper behavior
>
> The fact is that we have a kde4rc profile defined, so our path would be
> ourprofile/share/config -> /usr/share/config -> $HOME/.kde4/share/config
>
> Usually, kconfig respects this hierarchy and looks first for resource on
> ourprofile/share/config
>
> But KGlobal::config is not. Is looking only with $HOME/.kde4/share/config,
> then always returning default entry.
>
> Easy example
> Create an kde4rc file with this:
> [Directories-default]
> prefixes=/tmp/test
>
> create a /tmp/test/share/config/kdeglobals with:
> [General]
> widgetStyle=plastique
>
> Create a clean user with no .kde and start
> Do a kcmshell4 style
>
> You will see that plastique theme is selected, but you are using oxygen
>
> Why ?
> kdelibs/kdeui/kernel/kglobalsettings.cpp have this entry in
> applyGUIStyle
>
> <code snippet>
> KConfigGroup pConfig (KGlobal::config(), "General");
> QString styleStr = pConfig.readEntry("widgetStyle", defaultStyle);
> </code snippet>
>
> This readEntry is looking only for local config, not the hierarchy provided
> ofr kde4rc.
>
> Any tips ?
And i just discovered that kdelibs not likes kde4rc been a symlink, need to be
a real file.
and we use to have a symlink...
--
Helio Chissini de Castro
KDE Project
Brasil and South America Primary Contact
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080819/05e11ad2/attachment.htm>
More information about the kde-core-devel
mailing list