virtio-fs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Akihiko Odaki <akihiko.odaki@daynix.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
	virtio-fs@redhat.com, Yuval Shaia <yuval.shaia.ml@gmail.com>,
	Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
	Konstantin Kostiuk <kkostiuk@redhat.com>,
	Michael Roth <michael.roth@amd.com>,
	Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>,
	"Dr . David Alan Gilbert" <dgilbert@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>, Stefan Weil <sw@weilnetz.de>,
	Yan Vugenfirer <yan@daynix.com>,
	Akihiko Odaki <akihiko.odaki@daynix.com>
Subject: [Virtio-fs] [PATCH v3 8/8] spice-app: Use qemu_get_runtime_dir()
Date: Thu, 21 Sep 2023 16:54:22 +0900	[thread overview]
Message-ID: <20230921075425.16738-9-akihiko.odaki@daynix.com> (raw)
In-Reply-To: <20230921075425.16738-1-akihiko.odaki@daynix.com>

qemu_get_runtime_dir() provides QEMU-specific fallback of runtime
directory.

Signed-off-by: Akihiko Odaki <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 405fb7f9f5..f6c2343213 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);
 
     if (qemu_name) {
-        app_dir = g_build_filename(g_get_user_runtime_dir(),
-                                   "qemu", qemu_name, NULL);
+        g_autofree char *run = qemu_get_runtime_dir();
+        app_dir = 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));
-- 
2.41.0


      parent reply	other threads:[~2023-09-21  7:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21  7:54 [Virtio-fs] [PATCH v3 0/8] util: Introduce qemu_get_runtime_dir() Akihiko Odaki
2023-09-21  7:54 ` [Virtio-fs] [PATCH v3 1/8] " Akihiko Odaki
2023-09-21  7:54 ` [Virtio-fs] [PATCH v3 2/8] ivshmem-server: Use qemu_get_runtime_dir() Akihiko Odaki
2023-09-21  7:54 ` [Virtio-fs] [PATCH v3 3/8] contrib/rdmacm-mux: " Akihiko Odaki
2023-09-21  7:54 ` [Virtio-fs] [PATCH v3 4/8] qga: " Akihiko Odaki
2023-09-21  7:54 ` [Virtio-fs] [PATCH v3 5/8] scsi: " Akihiko Odaki
2023-09-21  7:54 ` [Virtio-fs] [PATCH v3 6/8] module: " Akihiko Odaki
2023-09-21  7:54 ` [Virtio-fs] [PATCH v3 7/8] util: Remove qemu_get_local_state_dir() Akihiko Odaki
2023-09-21  7:54 ` Akihiko Odaki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230921075425.16738-9-akihiko.odaki@daynix.com \
    --to=akihiko.odaki@daynix.com \
    --cc=dgilbert@redhat.com \
    --cc=fam@euphon.net \
    --cc=kkostiuk@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=michael.roth@amd.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=sw@weilnetz.de \
    --cc=virtio-fs@redhat.com \
    --cc=yan@daynix.com \
    --cc=yuval.shaia.ml@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).