diff --git a/openvibe/include/openvibe/StringDirectories.hpp b/openvibe/include/openvibe/StringDirectories.hpp
index f696fc595ff0a2e62cde99c714897d7405a22b5e..695aa9c5211d530c4f6ca978c5a21908fed07f0a 100644
--- a/openvibe/include/openvibe/StringDirectories.hpp
+++ b/openvibe/include/openvibe/StringDirectories.hpp
@@ -95,11 +95,11 @@ private:
 		readlink("/proc/self/exe", path, sizeof(path));
 		fullpath = std::string(path);
 #elif defined TARGET_OS_MacOS
-		size_t size = 0;
-//		_NSGetExecutablePath(nullptr, &size);
+		uint32_t size = 0;
+		_NSGetExecutablePath(nullptr, &size);
 		std::unique_ptr<char> path(new char[size + 1]);
 
-//		if (_NSGetExecutablePath(path.get(), &size) != 0) { std::abort(); }
+		if (_NSGetExecutablePath(path.get(), &size) != 0) { std::abort(); }
 
 		fullpath = std::string(path.get());
 #endif