Bug 183955

Summary: PyKDE4.plasma.Plasma.Theme.defaultTheme() produces a segfault
Product: [Developer tools] bindings Reporter: DasIch <dasdasich>
Component: generalAssignee: kde-bindings
Status: RESOLVED NOT A BUG    
Severity: crash CC: simon
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description DasIch 2009-02-10 23:11:45 UTC
Version:            (using KDE 4.2.0)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Unlisted Binary Package

Python 2.6.1 (r261:67515, Dec  7 2008, 18:56:39)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyKDE4.plasma import Plasma
>>> Plasma.Theme.defaultTheme()
Speicherzugriffsfehler

"Speicherzugriffsfehler" is german for Segmentation Fault. I think it's clear that this shouldn't happen. I've tried this on Arch Linux x86_64.
Comment 1 Simon Edwards 2009-02-16 08:33:52 UTC
defaultTheme() needs to be called in the context of a real plasma applet running inside plasma or the plasmaviewer, and not just in the shell with no program running around.
Comment 2 DasIch 2009-02-16 14:33:45 UTC
Oh, I'm sorry. I didn't expected that this wouldn't be possible in the shell. It would be nice to have this in the documentation.