Message ID | 20181220141553.24098-12-marcandre.lureau@redhat.com |
---|---|
State | New |
Headers | show |
Series | spice: add -display spice-app, setup and launch a Spice client | expand |
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);
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 <marcandre.lureau@redhat.com> --- ui/spice-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)