mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2024-12-22 05:35:20 +00:00
rdp: update bus names
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
6445ee03b8
commit
c3829847f0
@ -91,10 +91,10 @@ impl Server {
|
|||||||
let ev = server.event_sender().clone();
|
let ev = server.event_sender().clone();
|
||||||
self.dbus
|
self.dbus
|
||||||
.object_server()
|
.object_server()
|
||||||
.at("/org/qemu_rdp", DBusCtrl { ev })
|
.at("/org/qemu_display/rdp", DBusCtrl { ev })
|
||||||
.await?;
|
.await?;
|
||||||
self.dbus
|
self.dbus
|
||||||
.request_name_with_flags("org.QemuDisplay", BitFlags::EMPTY)
|
.request_name_with_flags("org.QemuDisplay.RDP", BitFlags::EMPTY)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
println!("Starting RDP server, args: {:?}", self.args);
|
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 {
|
impl DBusCtrl {
|
||||||
async fn set_credentials(&self, username: &str, password: &str, domain: &str) {
|
async fn set_credentials(&self, username: &str, password: &str, domain: &str) {
|
||||||
if let Err(error) = self.ev.send(ServerEvent::SetCredentials(Credentials {
|
if let Err(error) = self.ev.send(ServerEvent::SetCredentials(Credentials {
|
||||||
|
Loading…
Reference in New Issue
Block a user