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();