If we first request_name and then bus.export our service
then there is a (short) period of time when we already own the name
but our MessageBus class doesn't know which services shall it provide.
As a result, if we get a request in this period of time,
we will reply with an error "SERVICE.METHOD with signature SIGNATURE not found".
This situation will happen regularly if we are started by dbus-daemon
because we were declared in the .service file. For example:
If we first
request_name
and thenbus.export
our service then there is a (short) period of time when we already own the name but our MessageBus class doesn't know which services shall it provide. As a result, if we get a request in this period of time, we will reply with an error "SERVICE.METHOD with signature SIGNATURE not found".This situation will happen regularly if we are started by dbus-daemon because we were declared in the
.service
file. For example:With the old vesion of examples, this will fail to handle the first request for which D-Bus started our service.