View Full Version : Dbus -Unique sender id?

8th May 2011, 15:31

I have a server with DBus API and few clients for it. I would need to be able to identify in server where the signal came from.

Is it possible to get e.g. clients process name and path. Or is there any other unique identifier?

For a session it seems that QDBusMessage::service() has unique id, but if client is closed and started again, it changes.

I'm new to DBus, so I might have missed something :)

br, Tyrnikeisari

9th May 2011, 00:09
You shouldn't ever care about things such as pid or client path. If you want to be able to identify clients then provide an API for them to use, for instance let clients "register" and then assign them some unique identifiers that you will later request from them as an argument to your main function calls.