[PyKDE] segfault in kdecore using dcop call

Ismail Donmez ismail at pardus.org.tr
Thu Apr 6 21:32:55 BST 2006


Perşembe 6 Nisan 2006 23:28 tarihinde, Miguel Angel Alvarez şunları yazmıştı: 
[...]
> > Second, noticed two things: first you didn't call KCmdLineArgs.init() and
> > you didn't call _kapp.exec_loop() . Hope this helps.
>
> Look again, I do call KCmdLineArgs.init():
> kdecore.KCmdLineArgs.init(sys.argv[:1], _kaboutdata)

I am blind sorry.

> Why should I call _kapp.exec_loop()? The application has no kde interface,
> so it simply seems to hang if I do so.

It works fine with latest PyKDE snapshot with KDE 3.5.2 :

>>> 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)
(True, None)

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/83a8008f/attachment.bin


More information about the PyQt mailing list