Why does this qdbus command work and my dbus-send command not?

Thiago Macieira thiago at kde.org
Sun Nov 9 14:31:31 PST 2008

vatbier wrote:
>KMail Version 1.10.1
>Using KDE 4.1.2
>In the kde-pim at kde.org mailing list Thomas McGuire gave me a working
> qdbus command on my question why my dbus-send command for kmail didn't
> work: http://lists.kde.org/?l=kde-pim&r=1&b=200811&w=2 : kmail dbus
> method to hide in systray doesn't work
>This command doesn't work:
>dbus-send --type=method_call --dest=org.kde.kmail
> /kmail/kmail_manwindow_1 com.trolltech.Qt.QWidget.setHidden
> boolean:true
>This command does work:
>qdbus org.kde.kmail /kmail/kmail_mainwindow_1 setHidden true
>It hides the kmail window to systray (you must have enabled the kmail
> setting for the kmail system tray icon).
>I can't see what I'm doing wrong with my dbus-send command.
>I can't find better info on how to use dbus-send.
>I can't find no info at all on how to use qdbus, is there any tutorial?

The commands are not equivalent.

The equivalent to your dbus-send command would be:

qdbus org.kde.kmail /kmail/kmail_mainwindow_1 
com.trolltech.com.Qt.QWidget.setHidden true

It's a bug in Qt I've already fixed, according to my log, in Qt 4.4.2. 
Make sure you have at least that version. I've just tested locally and it 

See: http://trolltech.com/developer/task-
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20081109/9a574cab/attachment.pgp 

More information about the dbus mailing list