[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 7/7] spice-app: Use qemu_get_runtime_dir()
From: |
Akihiko Odaki |
Subject: |
[PATCH v4 7/7] spice-app: Use qemu_get_runtime_dir() |
Date: |
Tue, 16 Jul 2024 16:27:37 +0900 |
qemu_get_runtime_dir() provides QEMU-specific fallback of runtime
directory.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
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);
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.45.2
- [PATCH v4 1/7] util: Introduce qemu_get_runtime_dir(), (continued)
[PATCH v4 2/7] ivshmem-server: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 4/7] scsi: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 5/7] module: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 3/7] qga: Use qemu_get_runtime_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 6/7] util: Remove qemu_get_local_state_dir(), Akihiko Odaki, 2024/07/16
[PATCH v4 7/7] spice-app: Use qemu_get_runtime_dir(),
Akihiko Odaki <=
Re: [PATCH v4 0/7] util: Introduce qemu_get_runtime_dir(), Michael Tokarev, 2024/07/16
Re: [PATCH v4 0/7] util: Introduce qemu_get_runtime_dir(), Paolo Bonzini, 2024/07/16