Summary: | kmail dbus method to hide in systray doesn't work | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | vatbier <vatbier> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandriva RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
vatbier
2008-11-08 15:45:42 UTC
In the kde-pim@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 This command also works: qdbus org.kde.kmail /kmail/kmail_mainwindow_1 com.trolltech.Qt.QWidget.setHidden true It hides the kmail window to systray (you must have enabled the kmail setting for the kmail system tray icon). I'm now using this script to start kmail hidden when logging into KDE: #!/bin/sh kmail while (`pidof kmail`== "") do sleep 1 done qdbus org.kde.kmail /kmail/kmail_mainwindow_1 setHidden true It is the dbus-send command that doesn't work. Is it a bug of dbus-send or am I using the wrong parameters for it? I asked a question about this in dbus@lists.freedesktop.org mailing list: http://lists.freedesktop.org/archives/dbus/2008-November/010621.html As the qdbus command works I change this bug to INVALID. Stupid me, I figured out what I did wrong with te dbus-send command: I forgot an "i" in "..._mainwindow_...": This does work: dbus-send --type=method_call --dest=org.kde.kmail /kmail/kmail_mainwindow_1 com.trolltech.Qt.QWidget.setHidden boolean:true |