dcop incompatibility?

Waldo Bastian bastian at kde.org
Sun Feb 27 16:06:07 GMT 2005


On Sunday 27 February 2005 13:36, Michael Reiher wrote:
> Hi!
>
> The old Kwintv uses:
>
>   QByteArray data;
>   m_bHaveKDESaver = kapp->dcopClient()->findObject("kdesktop",
>                                                    "KScreensaverIface",
>                                                    "enable(bool)",
>                                                    data,
>                                                    m_screenSaverApp,
>                                                    m_screenSaverObj);
>
> to detect whether there is a KDE screensaver available. This used to work
> fine. But recently I noticed, that it obviously doesn't anymore(and thus
> the screensaver, isn't disabled anymore). findObject() apparently doesn't
> return true anymore, even though the dcop object exists. So, has
> dcop/dcopclient changed in an incompatible way?

The above snippet suggests that you call a function that takes a bool as 
argument, but you don't seem to pass any arguments at all to it. I think DCOP 
now catches that case and fails. Previously it could crash in such situation 
(with types other than bool).

Cheers,
Waldo
-- 
bastian at kde.org   |   Free Novell Linux Desktop 9 Evaluation Download
bastian at suse.com  |   http://www.novell.com/products/desktop/eval.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050227/70202f3b/attachment.sig>


More information about the kde-core-devel mailing list