[PyQt] PyKDE segfaults when calling group() on KSharedConfig object

Benno Dielmann lists at benno-dielmann.de
Fri Feb 6 08:33:10 GMT 2009


Hi, 

thanks, Simon, for looking into this and in general for your great work on 
PyKDE :-). 

I'm using KGlobal.config() in my application now. What is the difference between 
this and KSharedConfig.openConfig()? What is the preferred way of getting access 
to the configuration system? From the api docs this isn't clear to me...

Cheers, 

Benno. 

On Thursday 05 February 2009 22:13:11 Simon Edwards wrote:
> Hello,
>
> Benno Dielmann wrote:
> > config = KSharedConfig.openConfig()
> > group = config.group('General')
> >
> > The second line results in a segfault. Interestingly, it doesn't if the
> > config object is returned by KGlobal.config(). Documentation tells us
> > KGlobal.config() returns a KSharedConfig object as does
> > KSharedConfig.openConfig(). Strange.
> >
> > See the attached minimal.py example.
>
> thanks. I'll have a look at it soon.
>
> > This bug occurs since the update from KDE 4.1.4 to 4.2.
>
> mmmm... interesting.
>
> > Actually, where do bug reports on PyKDE go? bugs.kde.org? Should I file
> > one for this?
>
> Here or to me is fine. If that system breaks down then we should make
> proper use of bugs.kde.org.
>
> cheers,



More information about the PyQt mailing list