[PATCH] BR57204 mailto: urls don't work when kontact is running.

Waldo Bastian bastian at kde.org
Mon Dec 15 22:26:02 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon December 15 2003 22:16, Ingo Klöcker wrote:
> On Monday 15 December 2003 21:57, Waldo Bastian wrote:
> > On Mon December 15 2003 21:18, Ingo Klöcker wrote:
> > > > * KMail command line options may not get translated correctly.
> > >
> > > Okay, this will fix the KMail case. Any idea what we should do when
> > > we want to call KAddressBook from KMail (e.g. if the user selects
> > > Open in Addressbook from the context menu for email addresses?
> > > Currently we use startServiceByDesktopName("kaddressbook") which
> > > starts KAddressBook externally if the address book part hasn't been
> > > loaded yet in Kontact and in case the address book part has already
> > > been loaded nothing happens (except for the startup notification
> > > which blinks until it times out). Both is wrong because in both
> > > cases the Contacts part should be brought to the front in Kontact.
> > > The second case can easily be fixed by first checking if we can
> > > contact kaddressbook via DCOP. But what about the first case? Will
> > > a similar solution as the one for kmail also work for kaddressbook?
> >
> > Yes, create a "kaddressbook" DCOPObject that provides a newInstance()
> > method, similar to the one I added for KMail.
> >
> > However, I think you need a bit more than that, because with that
> > alone you will get inconsistent behavior depending on whether kontact
> > has loaded kaddressbook already or not.
>
> I don't understand. In both cases the Contacts part would be brought to
> front. Which inconsistent behavior do you mean?

- From what I understand (but I could be wrong here):

A) If kaddressbook hasn't been loaded yet, and you call 
startServiceByDesktopName("kaddressbook") it will start an external 
addressbook. (Why do you think that kontact would load the part and bring it 
to the front??)

B) If kaddressbook has been loaded as part already it will be brought to the 
front.

Just as with kmail, but since kmail always get loaded on startup, A) never 
happens with kmail.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/3jT6N4pvrENfboIRAu59AJ9EeEW/0MnMc432XJH+Ba/mEC0B2gCgj3Wi
/IJGa/13KfjfeikRtW7IeSY=
=oOkG
-----END PGP SIGNATURE-----
_______________________________________________
kde-pim mailing list
kde-pim at mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/




More information about the kde-core-devel mailing list