rdp: update bus names

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-12-07 14:30:15 +04:00
parent 6445ee03b8
commit c3829847f0

View File

@ -91,10 +91,10 @@ impl Server {
let ev = server.event_sender().clone();
self.dbus
.object_server()
.at("/org/qemu_rdp", DBusCtrl { ev })
.at("/org/qemu_display/rdp", DBusCtrl { ev })
.await?;
self.dbus
.request_name_with_flags("org.QemuDisplay", BitFlags::EMPTY)
.request_name_with_flags("org.QemuDisplay.RDP", BitFlags::EMPTY)
.await?;
println!("Starting RDP server, args: {:?}", self.args);
@ -105,7 +105,7 @@ impl Server {
}
}
#[zbus::interface(name = "org.QemuRDP")]
#[zbus::interface(name = "org.QemuDisplay.RDP")]
impl DBusCtrl {
async fn set_credentials(&self, username: &str, password: &str, domain: &str) {
if let Err(error) = self.ev.send(ServerEvent::SetCredentials(Credentials {