From nobody Sun Nov 24 20:00:21 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1721114963; cv=none; d=zohomail.com; s=zohoarc; b=ANuAAmhrrtVXuw/brq2rqoWszG91PNCZWCu494WAbSOyJ+Knhe5P6KkIR4XBkL9bIg4SBLBUtjirr5iqIKiZqa/fpyxlgGZgVd9JAXszhF4By4eIKqxLIOVDpjujKTkaHMBnLBL/azkcRO4Cuv9WgpeMiwBEaBOoCmcf2uUIKjc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1721114963; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=DgK+8Ab0My7nZ1jTou6SSJrbwenaRoM5fcR5nlg4MS0=; b=ce6nrkC9V7O1PVtHEMrDZBNALHHj853iNO8hSmHjrAQPIhB3cgJ6yhDZ13ET2EUlfiJy7aUYDj32SFHcJeco2g5FbDr5QG1DE9S5AAtEF7Csd20OqZWA5YDhR2PyDLW1xQlmczXefzRTdhfLvBG6besVjlZMj9O4xvahLiySZyg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1721114963500615.6833111336174; Tue, 16 Jul 2024 00:29:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTcc1-0006Qi-Cp; Tue, 16 Jul 2024 03:28:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTcbz-0006I0-BF for qemu-devel@nongnu.org; Tue, 16 Jul 2024 03:28:35 -0400 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sTcbx-0006Xy-0b for qemu-devel@nongnu.org; Tue, 16 Jul 2024 03:28:35 -0400 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-704156d0e0dso2739194a34.1 for ; Tue, 16 Jul 2024 00:28:32 -0700 (PDT) Received: from localhost ([157.82.128.7]) by smtp.gmail.com with UTF8SMTPSA id 41be03b00d2f7-78e3485dcc7sm4400161a12.39.2024.07.16.00.28.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jul 2024 00:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1721114912; x=1721719712; darn=nongnu.org; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DgK+8Ab0My7nZ1jTou6SSJrbwenaRoM5fcR5nlg4MS0=; b=1FMd6PeQeNKrl5qqpkI67ydyKuD+WJbzGn2zHz+l25pAN3NgSiL/DbLKxgYFFT0BJi 0t63+dogfzW9oZyV3iIC89BzS0xFbKTqmorHPy/pxQIdBYXxtTamzQTE4YrY4z56rMLe J3a97zyRJw4+o+fErB3BDomYbEMowODcUr6eZNpZpeoWa02BQr2xRLHrCcrQadqB1CRf gNWe7NJbO7cTpDL1jSdWiYioZATDNXp8CefXF7+nXDJB1HsSF/zpimMuryP1UEBBew/F zf9rgp301hXJSKaDCjwqY+ehfAz+mO3d+ClgEFwe7KkjrtUdQ/WUqwk3RiCov0qk4CHW we/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721114912; x=1721719712; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DgK+8Ab0My7nZ1jTou6SSJrbwenaRoM5fcR5nlg4MS0=; b=wnNbjTZ3AQwRDLBPdAlu9V+s3qftdMIPFMGDynXwRBwkVww7IAt1B6mjE7VeFI55vh sjdetUdasH6F3yyUj93tujPrz33cdbrdPcFuuWUBa7kgw851BIv3HwC+uL/XFTRoIUS/ UX2BoZcewlsl2ENJC8r5fwKmEGKjUuiTYeF7Bq7s5nK6XKlTrKvmRilIS7ieZstcqxqF L9AtzCrMjWygsybcdhe/DPAcDoKgVpISxiI1ycYKtv9H7ba7Alix5S7A78PEJFfZXPwb oj9iITfqG9YeKZ5nLjXN7Q+RjVRqi0JIfMX464J61etBiRdbwtIviwncnv6bYa04gPZV XZ+g== X-Gm-Message-State: AOJu0Yz8RRvZvJH0FuoBruKSerlOtf8vMSy/gsnPv2DEqypnLdMt0rw4 SjBiFhHysX3K2BIQDaXJZC1UC6BvVhMNgm4INhMC7vpJyH2TOKWxZFzUy3uAYOM= X-Google-Smtp-Source: AGHT+IGB8zQ/FUrAaZCwGH4mmwPrK3IkiI9TIQiLOyTf/QokXdHbW+L25GnXfVqtiak8fNaYte6LXA== X-Received: by 2002:a05:6830:929:b0:703:6aa3:d091 with SMTP id 46e09a7af769-708d99609a3mr1848889a34.2.1721114911857; Tue, 16 Jul 2024 00:28:31 -0700 (PDT) From: Akihiko Odaki Date: Tue, 16 Jul 2024 16:27:37 +0900 Subject: [PATCH v4 7/7] spice-app: Use qemu_get_runtime_dir() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240716-run-v4-7-5f7a29631168@daynix.com> References: <20240716-run-v4-0-5f7a29631168@daynix.com> In-Reply-To: <20240716-run-v4-0-5f7a29631168@daynix.com> To: qemu-devel@nongnu.org, qemu-block@nongnu.org, virtio-fs@redhat.com, Yuval Shaia , Marcel Apfelbaum , Konstantin Kostiuk , Michael Roth , Paolo Bonzini , Fam Zheng , "Dr . David Alan Gilbert" , Stefan Hajnoczi , Gerd Hoffmann , Stefan Weil , Yan Vugenfirer , Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::330; envelope-from=akihiko.odaki@daynix.com; helo=mail-ot1-x330.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1721114965344116600 qemu_get_runtime_dir() provides QEMU-specific fallback of runtime directory. Signed-off-by: Akihiko Odaki Message-Id: <20230921075425.16738-9-akihiko.odaki@daynix.com> --- ui/spice-app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/spice-app.c b/ui/spice-app.c index a10b4a58fe74..bbe17358c8d4 100644 --- a/ui/spice-app.c +++ b/ui/spice-app.c @@ -151,8 +151,8 @@ static void spice_app_display_early_init(DisplayOptions= *opts) atexit(spice_app_atexit); =20 if (qemu_name) { - app_dir =3D g_build_filename(g_get_user_runtime_dir(), - "qemu", qemu_name, NULL); + g_autofree char *run =3D qemu_get_runtime_dir(); + app_dir =3D g_build_filename(run, "qemu", qemu_name, NULL); if (g_mkdir_with_parents(app_dir, S_IRWXU) < -1) { error_report("Failed to create directory %s: %s", app_dir, strerror(errno)); --=20 2.45.2