From 7e826da7a9c0660fc6b1d009ba596c3a084e8706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= <13226155+dhrdlicka@users.noreply.github.com> Date: Fri, 22 Aug 2025 09:49:40 +0200 Subject: [PATCH] Change default VMM path for systems other than Windows --- src/qt/qt_platform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index d8aca89d4..98797895c 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -697,7 +697,11 @@ plat_get_temp_dir(char *outbuf, const uint8_t len) void plat_get_vmm_dir(char *outbuf, const size_t len) { +#ifdef Q_OS_WINDOWS const auto path = QDir::home().filePath("86Box VMs"); +#else + const auto path = QDir(QStandardPaths::standardLocations(QStandardPaths::AppDataLocation)[0]).filePath("Virtual Machines"); +#endif strncpy(outbuf, path.toUtf8().constData(), len); }