KGlobal::config() issue
Subject: KGlobal::config() issue
Newsgroups: gmane.comp.kde.devel.core
Date: 2008-08-19 18:53:19 GMT
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 ?
--
Helio Chissini de Castro
KDE Project
Brasil and South America Primary Contact

RSS Feed