[ABI Break] Correctly detect the executable path in appimage.

There are two executable path :
- The user one (the appimage path)
- The real one (in the appimage archive)

When we search of `library.xml` we need the user one.
But when we search of `aria2c` or `kiwix-serve` we need the real one.

Fix kiwix/kiwix-desktop#256
This commit is contained in:
Matthieu Gautier
2019-09-17 11:12:13 +02:00
parent 15d5b4ed58
commit 9b4419f3fc
4 changed files with 12 additions and 16 deletions

View File

@ -38,7 +38,7 @@ bool makeDirectory(const std::string& path);
std::string makeTmpDirectory();
bool copyFile(const std::string& sourcePath, const std::string& destPath);
std::string getLastPathElement(const std::string& path);
std::string getExecutablePath();
std::string getExecutablePath(bool realPathOnly = false);
std::string getCurrentDirectory();
std::string getDataDirectory();
bool writeTextFile(const std::string& path, const std::string& content);