(Haiku) Made sure es-pdf-convert is found under all circumstances

This commit is contained in:
Leon Styhre 2024-08-23 17:05:48 +02:00
parent 20293e1c03
commit ea023b8e34

View file

@ -375,8 +375,8 @@ namespace Utils
esBinary = exePath;
exePath = getCanonicalPath(exePath);
#if defined(__FreeBSD__)
// Fallback to getPathToBinary(argv[0]), needed as FreeBSD does not typically
#if defined(__FreeBSD__) || defined(__HAIKU__)
// Fallback to getPathToBinary(argv[0]), needed as FreeBSD and Haiku do not
// provide /proc/self/exe.
if (exePath.empty()) {
esBinary = getPathToBinary(path);