Check whether a dbus caller is still alive
Simon McVittie
smcv at collabora.com
Mon Oct 2 09:58:03 UTC 2017
On Mon, 02 Oct 2017 at 08:55:36 +0100, David Llewellyn-Jones wrote:
> The following will turn my invocation into its unique sender name:
>
> const gchar * unique_name;
> unique_name = g_dbus_message_get_sender
> (g_dbus_method_invocation_get_message (invocation));
>
> Now waiting on a "NameOwnerChanged" signal with old_owner matching
> unique_name and new_owner matching "" indicates that the owner of that
> message is no longer interested.
This is the correct approach, please continue to use it.
smcv
More information about the dbus
mailing list