Itai Seggev writes: > On Sat, Apr 17, 2004 at 10:52:27PM +0200, Dominique Devriese wrote: >> Itai Seggev writes: >> >> > OK, so this is the only place in the source where the error >> > message appears: >> >> > QStringList keys() const >> > { >> > QSettings cfg; >> > KStyleDirs::dirs()->addToSearch( "config", cfg ); >> >> > QStringList keys; bool ok; >> >> > keys = cfg.readListEntry( "/kthemestyle/themes", &ok); if >> > ( !ok ) >> > qWarning( "KThemeStyle cache seems corrupt!\n" ); >> > //Too >> > bad one can't i18n this :-( >> >> > return keys; >> > } >> >> For reference: this code comes from >> kdelibs/kstyles/kthemestyle/kthemestyle.cpp. >> >> > This code is the same in both debian and pristine sources (which >> > I guess makes sense, given the recompiling the debian sources >> > fixes the problem). It's not entirely clear to me how this code >> > actually ever works, but apparently it does.
>> Why wouldn't it work ? > I didn't say it wouldn't, I just said I don't understand how it > works. I did "locate kthemestyle/themes" and got null output, so I > guess that string is some sort of key and not a physical > directory. However, I don't really know the internals of KDE. What happens there is a QSettings class is created, the current config resource dirs are added to its search path. Then, QSettings is told to get the config entry "/kthemestyle/themes" which it is supposed to get from a file kthemestylerc in its search path. I can't see why that fails for you. I'd like to debug this, but I can't since I don't get the error. >> > However, I'm no closer to figuring out why I'm getting this >> > message. >> >> Can you send us the output of the command "locate kthemestylerc" >> and the contents of the file /etc/kde3/kthemestylerc ? Possibly, >>>>> > 152:cavy:/usr/share/apps/kstyle/themes> locate kthemestylerc > /etc/kde3/.kthemestylerc.lock /etc/kde3/kthemestylerc > /usr/local/kde/share/config/kthemestylerc > /usr/local/kde/share/config/.kthemestylerc.lock > /usr/local/src/kde/kdelibs/kstyles/themes/kthemestylerc <<<<< > All three copies of the file are identical: >>>>> > 153:cavy:/usr/share/apps/kstyle/themes> cat /etc/kde3/kthemestylerc > [General] themes=marble^eriscos^esystem^esystemalt^e > [marble] file=marble.themerc > [riscos] file=riscos.themerc > [system] file=system.themerc > [systemalt] file=systemalt.themerc <<<< Right. It means you have installed a local version of KDE, right ? Do you happen to have set KDEDIRS to something or have done other uncommon things ? Can you check if the problem goes away if you remove those settings ? thanks domi