[Kde-pim] kmail dbus method to hide in systray doesn't work

Thomas McGuire mcguire at kde.org
Sat Nov 8 15:03:20 GMT 2008


On Saturday 08 November 2008 15:40:28 vatbier wrote:
> KMail Version 1.10.1
> Using KDE 4.1.2
> In KDE 3.5.9 I could use this command when logging into KDE to start kmail
> hidden in systray:
> dcop $(dcopstart kmail) kmail-mainwindow#1 setHidden on
> In KDE 4.1.2 I'm trying to use dbus-send command:
> dbus-send --type=method_call --dest=org.kde.kmail
>  /kmail/kmail_manwindow_1 com.trolltech.Qt.QWidget.setHidden boolean:true
> dbus-send --type=method_call --dest=org.kde.kmail
>  /kmail/kmail_manwindow_1 com.trolltech.Qt.QWidget.setHidden boolean:false
> dbus-send --type=method_call --dest=org.kde.kmail
>  /kmail/kmail_manwindow_1 com.trolltech.Qt.QWidget.setHidden :1
> dbus-send --type=method_call --dest=org.kde.kmail
>  /kmail/kmail_manwindow_1 com.trolltech.Qt.QWidget.setHidden :0
> dbus-send --type=method_call --dest=org.kde.kmail
>  /kmail/kmail_manwindow_1 com.trolltech.Qt.QWidget.hide
> None of these work, the kmail window just doesn't get hidden in systray.
> I suspect the dbus interface of kmail is not correctly/fully implemented.
> I'll file a bug report at bugs.kde.org.
> Or does any one of you know a dbus-send command that works?

qdbus works for me:
qdbus org.kde.kmail /kmail/kmail_mainwindow_1 setHidden true

However, it is not guarnteed that the user has a systemtray icon for KMail, he 
might not have enabled that in the config. In this case, the window will 
completely disappear.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20081108/9e8d3cd8/attachment.sig>
-------------- next part --------------
KDE PIM mailing list kde-pim at kde.org
KDE PIM home page at http://pim.kde.org/

More information about the kde-pim mailing list