Received: from eggs.gnu.org ([209.51.188.92]:34804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwmCb-0002Eq-JP for qemu-devel@nongnu.org; Thu, 21 Feb 2019 06:07:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwmCa-00072u-HQ for qemu-devel@nongnu.org; Thu, 21 Feb 2019 06:07:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47724) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwmCa-00072L-9W for qemu-devel@nongnu.org; Thu, 21 Feb 2019 06:07:40 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 962955AFE3 for ; Thu, 21 Feb 2019 11:07:39 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 21 Feb 2019 12:07:02 +0100 Message-Id: <20190221110703.5775-11-marcandre.lureau@redhat.com> In-Reply-To: <20190221110703.5775-1-marcandre.lureau@redhat.com> References: <20190221110703.5775-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 10/11] spice: use a default name for the server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kraxel@redhat.com 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=C3=A9 Lureau Tested-by: Victor Toso --- 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 92eebe5f0e..2ac81129e5 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -784,7 +784,7 @@ void qemu_spice_init(void) =20 qemu_opt_foreach(opts, add_channel, &tls_port, &error_fatal); =20 - spice_server_set_name(spice_server, qemu_name); + spice_server_set_name(spice_server, qemu_name ?: "QEMU " QEMU_VERSIO= N); spice_server_set_uuid(spice_server, (unsigned char *)&qemu_uuid); =20 seamless_migration =3D qemu_opt_get_bool(opts, "seamless-migration",= 0); --=20 2.21.0.rc1