(Linux) The esBinary variable is now set correctly when running as an AppImage

This commit is contained in:
Leon Styhre 2023-07-03 17:41:22 +02:00
parent 15e5a8b305
commit 19c8d5bb38

View file

@ -338,6 +338,13 @@ namespace Utils
}
if (isRegularFile(exePath))
exePath = getParent(exePath);
#if defined(APPIMAGE_BUILD)
// We need to check that the APPIMAGE variable is available as the APPIMAGE_BUILD
// build flag could have been passed without running as an actual AppImage.
if (getenv("APPIMAGE") != nullptr)
esBinary = getenv("APPIMAGE");
#endif
}
std::string getExePath()