trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: May 2019

Re: [trinity-users] kicker panel died

From: Gene Heskett <gheskett@...>
Date: Tue, 7 May 2019 22:53:40 -0400
On Tuesday 07 May 2019 10:37:31 pm David C. Rankin wrote:

> On 05/07/2019 04:18 AM, Gene Heskett wrote:
> > msg marked, important, but kmail pulldowns menu bar is also missing,
> > I had to right-click in message list to mark it. How do I get that
> > pulldown stuff back at the top of kmail?
> >
> > Cheers, Gene Heskett
>
>   You can see what is available to dcop simply by typing dcop at the
> command line, e.g.
>
> $ dcop
> dcop
> konqueror-3300
> kwin
> kicker
> kate-3345
> kded
> kmix
> knotify
> kalarmd
> klauncher
> knotes
> khotkeys
> kmail           <== Ahah!
> kdesktop
> konsole-3368
> klipper
> ksmserver
> kgpg
> knetworkmanager
> basket
>
>   Then you work your way down the dcop chain, e.g.
>
> $ dcop kmail
> qt
> ConnectionManager
> KDebug
> KIMProxyIface
> KIO::Scheduler
> KMailICalIface
> KMailIface (default)
> KPIM::IdentityManager
> MailTransportServiceIface
> MainApplication-Interface
> html-widget1
> kmail
> kmail-mainwindow#1
> ksycoca
>
qdbus has no such helpfull interface, but this is the command I use in 
the script:
Cmd="/usr/bin/qdbus org.kde.kmail /KMail org.kde.kmail.kmail.checkMail"

>   There is a whole lot you can do with KMailIface, kmail-mainwindow#1
> (the current window), and MainApplication-Interface -- but
> unfortunately there is nothing menu specific. It is pretty amazing all
> that is there, but no rabbit to pull out of the dcop hat for kmail
> menus.

We should grow a qdbus with those listing capabilities. The above one 
liner, works about 99.99% of the time.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>