From a61d6fe0b8bcb9ea8ead9712cdfee1c4d70ac845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= <13226155+dhrdlicka@users.noreply.github.com> Date: Sat, 23 Aug 2025 20:42:12 +0200 Subject: [PATCH] Only show the translocation warning when trying to load a config from EXE path --- src/86box.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/86box.c b/src/86box.c index cf060854d..07dcbaf83 100644 --- a/src/86box.c +++ b/src/86box.c @@ -746,10 +746,6 @@ pc_init(int argc, char *argv[]) p = path_get_filename(exe_path); *p = '\0'; } - if (!strncmp(exe_path, "/private/var/folders/", 21)) { - ui_msgbox_header(MBX_FATAL, L"App Translocation", EMU_NAME_W L" cannot determine the emulated machine's location due to a macOS security feature. Please move the " EMU_NAME_W L" app to another folder (not /Applications), or make a copy of it and open that copy instead."); - return 0; - } #elif !defined(_WIN32) /* Grab the actual path if we are an AppImage. */ p = getenv("APPIMAGE"); @@ -1107,10 +1103,16 @@ usage: /* Determine whether to start the VM manager. */ #ifndef USE_SDL_UI - if (vmm_disabled) + if (vmm_disabled && start_vmm) #endif { start_vmm = 0; +#ifdef __APPLE__ + if (!strncmp(exe_path, "/private/var/folders/", 21)) { + ui_msgbox_header(MBX_FATAL, L"App Translocation", EMU_NAME_W L" cannot determine the emulated machine's location due to a macOS security feature. Please move the " EMU_NAME_W L" app to another folder (not /Applications), or make a copy of it and open that copy instead."); + return 0; + } +#endif } #ifndef USE_SDL_UI