diff --git a/src/util/platform.cpp b/src/util/platform.cpp index 0b5553e8..d4d39925 100644 --- a/src/util/platform.cpp +++ b/src/util/platform.cpp @@ -82,10 +82,12 @@ void platform::open_folder(const std::filesystem::path& folder) { } #ifdef __APPLE__ auto cmd = "open " + util::quote(folder.u8string()); + system(cmd.c_str()); #elif defined(_WIN32) auto cmd = "start explorer " + util::quote(folder.u8string()); + ShellExecuteW(NULL, L"open", folder.wstring().c_str(), NULL, NULL, SW_SHOWDEFAULT); #else auto cmd = "xdg-open " + util::quote(folder.u8string()); -#endif system(cmd.c_str()); -} \ No newline at end of file +#endif +}