[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 11/12] spice: use a default name for the server

From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH v2 11/12] spice: use a default name for the server
Date: Thu, 20 Dec 2018 18:15:52 +0400

If no -name is given, let's use a friendly "QEMU version" server
name. This is sometime exposed on spice client side, for example on
remote-viewer title.

Signed-off-by: Marc-André Lureau <address@hidden>
 ui/spice-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/spice-core.c b/ui/spice-core.c
index 9627f07cd8..71ff34c927 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -785,7 +785,7 @@ void qemu_spice_init(void)
     qemu_opt_foreach(opts, add_channel, &tls_port, &error_fatal);
-    spice_server_set_name(spice_server, qemu_name);
+    spice_server_set_name(spice_server, qemu_name ?: "QEMU " QEMU_VERSION);
     spice_server_set_uuid(spice_server, (unsigned char *)&qemu_uuid);
     seamless_migration = qemu_opt_get_bool(opts, "seamless-migration", 0);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]