This commit is contained in:
Nav
2023-08-20 18:50:14 +01:00
parent 9faab27ad7
commit 3c82edc2db

View File

@@ -12,7 +12,7 @@ namespace Services
std::string PathService::applicationDirPath() { std::string PathService::applicationDirPath() {
auto pathCharArray = std::array<char, PATH_MAX>(); auto pathCharArray = std::array<char, PATH_MAX>();
if (readlink("/proc/self/exe", pathCharArray.data(), PATH_MAX) < 0) { if (::readlink("/proc/self/exe", pathCharArray.data(), PATH_MAX) < 0) {
throw Exceptions::Exception("Failed to obtain application directory path."); throw Exceptions::Exception("Failed to obtain application directory path.");
} }