Browse Source

Fixed the SystemOpen() on Mac/Linux platform to use the full path to the executable as the new file check in the SystemRun() does not consider system-wide search PATH environment variable.

Wei Tjong Yao 12 years ago
parent
commit
fec4a8fef5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/IO/FileSystem.cpp

+ 2 - 2
Engine/IO/FileSystem.cpp

@@ -224,9 +224,9 @@ bool FileSystem::SystemOpen(const String& fileName, const String& mode)
         arguments.Push(fileName);
         bool success = SystemRun(
         #if defined(__APPLE__)
-                "open",
+                "/usr/bin/open",
         #else
-                "xdg-open",
+                "/usr/bin/xdg-open",
         #endif
                 arguments) == 0;
         #endif