mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
(Linux) The esBinary variable is now set correctly when running as an AppImage
This commit is contained in:
parent
15e5a8b305
commit
19c8d5bb38
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue