[PyKDE] segfault in kdecore using dcop call

Ismail Donmez ismail at pardus.org.tr
Thu Apr 6 20:14:31 BST 2006


Perşembe 6 Nisan 2006 21:45 tarihinde, Miguel Angel Alvarez şunları yazmıştı: 
> Hi,
>
> Trying to use a dcop call with a bool argument causes a segfault.
> dcop calls with other argument types work nicely
> What can I do?
>
> I'm using suse 10, kde 3.5.1/2, python-qt 3.5.1/2, kdebindings-python
> 3.5.1/2, python 2.4.1

Well you should use PyKDE snapshot from 
http://www.riverbankcomputing.com/Downloads/PyKDE3/PyKDE-snapshot20060122.tar.gz 
( it won't compile with sip 4.4.1 so you should use older sip snapshots ).

>
> This is the sample code:
>
> ..... python code .....
> import sys
> import kdecore
> import dcopext
> _kaboutdata = kdecore.KAboutData('amarok_replaygain.py','Amarok replaygain
> script','0.8.1')
> kdecore.KCmdLineArgs.init(sys.argv[:1], _kaboutdata)
> _kapp = kdecore.KApplication()
> amarok_dcop = dcopext.DCOPApp ("amarok", _kapp.dcopClient())
>
> amarok_dcop.player.enableOSD(True)
> ...... end .....

Second, noticed two things: first you didn't call KCmdLineArgs.init() and you 
didn't call _kapp.exec_loop() . Hope this helps.

Regards,
ismail

-- 
<Terwou> \\o \o> <o/ o//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060406/9088c70b/attachment.bin


More information about the PyQt mailing list