From 34e835a4f0ddacd460fb244b8fba94d44f5c3bc9 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sat, 20 Dec 2025 16:07:20 -0300 Subject: [PATCH] Add an asset path within the AppImage (in case XDG_DATA_DIRS is not the AppImage default) --- src/86box.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/86box.c b/src/86box.c index 50821b773..1d4e527c8 100644 --- a/src/86box.c +++ b/src/86box.c @@ -1041,12 +1041,19 @@ usage: path_append_filename(temp, exe_path, "assets"); asset_add_path(temp); -#ifdef __APPLE__ +#if defined(__APPLE__) // Add the standard asset path within the app bundle. if (contents_path[0] != '\0') { path_append_filename(temp, contents_path, "Resources/assets"); asset_add_path(temp); } +#elif !defined(_WIN32) + // Add the standard asset path within the AppImage. + p = getenv("APPDIR"); + if (p && (p[0] != '\0')) { + path_append_filename(temp, p, "usr/local/share/" EMU_NAME "/assets"); + asset_add_path(temp); + } #endif plat_init_asset_paths();