GNOME Bugzilla – Bug 646427
g_bus_own_name() docs don't mention what name_acquired_handler is good for
Last modified: 2011-04-27 03:12:31 UTC
The g_bus_own_name() documentation http://library.gnome.org/devel//gio/2.27/gio-Owning-Bus-Names.html#g-bus-own-name says that name_acquired_handler is too late to register objects, though they should be unregistered in name_lost_handler. None of the tests in gio/tests/ seem to use it for anything. So I wonder what it's for.
The docs very clearly states name_acquired_handler : Handler to invoke when name is acquired or NULL. One way to think about well-known names is that it's just an alias for your unique name. Just like www.gnome.org is an alias for one or more IPv4 and IPv6 addresses. One example of watching name ownership is this: ownership of the name org.freedesktop.Notifications indicate (by contract) that you will show notifications. It could be that your desktop shell will want to change appearance depending on whether you own the name or not. I don't think it's appropriate at this API level to mention anything here.
taking the comment as a wontfix