Tracking Application Lifetime [again]

Thiago Macieira thiago at kde.org
Thu Aug 7 03:19:52 PDT 2008


On Thursday 07 August 2008 11:53:52 Soh Kam Yung wrote:
> On Thu, Aug 7, 2008 at 4:09 PM, Thiago Macieira <thiago at kde.org> wrote:
> > Pre-requisite: both applications (tracker and "trackee") are connected to
> > D- Bus
> >
> > Step 1: tracker somehow finds out which, out of the many applications
> > connected to D-Bus, is the one it wants to track.
> > Suggestions:
> >        - the tracked application registers a well known name
> > (org.foo.Application) - the tracked application is doing some kind of
> > activity, like emitting a signal or calling the tracker, so the tracker
> > gets the unique ID (:1.xx)
>
> Just to be certain, by unique ID, you mean the return value from
> dbus_message_get_sender()?

I meant "the unique ID that the bus gives your connection when you connect 
(the response to the Hello call)", which can be obtained via 
dbus_bus_get_unique_name().

That's the definition of it.

But dbus_message_get_sender() returns that too, on *received* messages.

-- 
  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/20080807/09b1a0a1/attachment.pgp 


More information about the dbus mailing list