From 38cdd712166cbcae93c4e50b9ab10f72925d09bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 4 Aug 2025 14:19:25 +0200 Subject: [PATCH] Fix #16988: AppImage version does not show changelog (#24878) --- distribution/changelog.txt | 1 + src/openrct2/platform/Platform.Linux.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 5b83b3d214..91c5bba430 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.4.26 (in development) ------------------------------------------------------------------------ +- Fix: [#16988] AppImage version does not show changelog. 0.4.25 (2025-08-03) ------------------------------------------------------------------------ diff --git a/src/openrct2/platform/Platform.Linux.cpp b/src/openrct2/platform/Platform.Linux.cpp index 571ceda11b..f233a3ea75 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -102,7 +102,11 @@ namespace OpenRCT2::Platform std::string GetDocsPath() { - static const utf8* searchLocations[] = { + std::string relative = Path::GetDirectory(Platform::GetCurrentExecutablePath()); + relative = Path::Combine(relative, u8"../share/doc/openrct2"); + const utf8* searchLocations[] = { + // First try the directory relative to the executable + relative.c_str(), "./doc", "/usr/share/doc/openrct2", DOCDIR, @@ -112,6 +116,7 @@ namespace OpenRCT2::Platform LOG_VERBOSE("Looking for OpenRCT2 doc path at %s", searchLocation); if (Path::DirectoryExists(searchLocation)) { + LOG_VERBOSE("Found OpenRCT2 doc path at %s", searchLocation); return searchLocation; } }