KGlobal::config() issue
Helio Chissini de Castro
helio at kde.org
Tue Aug 19 19:53:19 BST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080819/3ad3911d/attachment.htm>
More information about the kde-core-devel
mailing list