[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdebase/kcontrol/krdb
From: Lubos Lunak <l.lunak () suse ! cz>
Date: 2003-01-30 13:17:58
[Download RAW message or body]
On Thursday 30 of January 2003 14:08, Karol Szwed wrote:
> On 2003-01-29 11:43:06, Lubos Lunak wrote:
> > I don't understand this resources stuff, but since the other file is
> > called .Xdefaults, shouldn't it be read as the very first one? Or maybe
> > even not to read at all, since it will(?) be already there? And BTW
> > there's a similar code in kdebase/kcontrol/colors/colorscm.cpp.
>
> quote from http://tam.cornell.edu/Computer/tips.html:
> "Use of old-style .Xdefaults files is discouraged. The newer .Xresources
> file provides the same functionality but works better. See man xrdb for
> more information. The .Xresources file has the same format as a .Xdefaults
> file."
>
> On some systems, (eg SuSE I think), ~/.Xdefaults is symlinked to
> ~/.Xresources as ~/.Xdefaults is pretty much deprecated now. On my system,
> I don't even have ~/.Xdefaults, only ~/.Xresources for this reason. The
> code simply merges in the "new-style" ~/.Xresources if it exists, or falls
> back to merging in the "old-style" ~/.Xdefaults.
>
> Lubos, why did you add the xrdb call there in colorscm.cpp, instead of
> hiding that nastyness in krdb?
Because the code in krdb was removing all xrdb resources if the 'apply colors
to non-KDE apps' setting was off. And since some people had additional
resources even outside ~/.Xdefaults (don't ask me, we simply had a bugreport
for it), this effectively removed all those extra resources.
On the other hand, disabling this setting in kcontrol has to remove KDE
properties. Since I don't think it's possible to remove only the ones set by
KDE, the code in colorscm.cpp has to remove the property (and use
~/.Xdefaults at least).
--
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic