Unknown object on service activation
I observe an activation bug (somewhat reminiscent of #68 (closed)), with a system activated service on fc34:
#[async_std::main]
async fn main() -> Result<(), Box<dyn Error>> {
let connection = Connection::system()
.await?
.request_name("org.freedesktop.usbredir1")
.await?;
connection.object_server_mut().await.at(
"/org/freedesktop/usbredir1",
Interface::new(&connection).await?,
)?;
loop {
let listener = connection.monitor_activity();
if !listener.wait_timeout(Duration::from_secs(10)) {
break;
}
}
Ok(())
}
I get a reliable error on activation (subsequent calls ok while the service is running):
$ busctl call org.freedesktop.usbredir1 /org/freedesktop/usbredir1 org.freedesktop.usbredir1 OpenBusDev yy 1 59
Call failed: Unknown object '/org/freedesktop/usbredir1'
Interestingly, if I modify zbus to request the name after the server is setup, I don't get the race or the issue or the timeout from #68 (closed).
Edited by Marc-André Lureau