Browse Source

Add system::openFolder() on Mac.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
bc06efd9ab
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/system.cpp

+ 4
- 0
src/system.cpp View File

@@ -200,6 +200,10 @@ void openFolder(const std::string &path) {
std::string command = "xdg-open \"" + path + "\"";
(void) std::system(command.c_str());
#endif
#if defined ARCH_MAC
std::string command = "open \"" + path + "\"";
std::system(command.c_str());
#endif
#if defined ARCH_WIN
std::wstring pathW = string::toWstring(path);
ShellExecuteW(NULL, L"explore", pathW.c_str(), NULL, NULL, SW_SHOWDEFAULT);


Loading…
Cancel
Save