[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/10] spice-app: Use qemu_get_runtime_dir()
From: |
Akihiko Odaki |
Subject: |
[PATCH 10/10] spice-app: Use qemu_get_runtime_dir() |
Date: |
Thu, 10 Nov 2022 15:23:29 +0900 |
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 7e71e18da9..feb162baa7 100644
--- a/ui/spice-app.c
+++ b/ui/spice-app.c
@@ -145,8 +145,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.38.1
- [PATCH 00/10] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 01/10] qga: Remove platform GUID definitions, Akihiko Odaki, 2022/11/10
- [PATCH 02/10] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 03/10] ivshmem-server: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 04/10] contrib/rdmacm-mux: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 05/10] qga: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 06/10] scsi: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 07/10] virtiofsd: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 09/10] util: Remove qemu_get_local_state_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 10/10] spice-app: Use qemu_get_runtime_dir(),
Akihiko Odaki <=
- [PATCH 08/10] module: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10