diff --git a/lib/libimhex/source/helpers/fs.cpp b/lib/libimhex/source/helpers/fs.cpp index 6d0ae8609..07d3beaa8 100644 --- a/lib/libimhex/source/helpers/fs.cpp +++ b/lib/libimhex/source/helpers/fs.cpp @@ -171,9 +171,6 @@ namespace hex::fs { #endif - for (auto &path : paths) - path = path / "imhex"; - #if defined(OS_MACOS) if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value()) @@ -181,6 +178,9 @@ namespace hex::fs { #else + for (auto &path : paths) + path = path / "imhex"; + if (auto executablePath = wolv::io::fs::getExecutablePath(); executablePath.has_value()) paths.push_back(executablePath->parent_path());