Implement LaunchFileExplorer the same as LaunchWebBrowser.

This commit is contained in:
Peter Wright 2025-05-19 19:29:44 +01:00 committed by Radosław Gliński
parent b43cb2ed8e
commit 63c2d94a98

View file

@ -29,7 +29,11 @@ void LaunchWebBrowser(const std::string_view url) {
system(cmd.c_str());
}
void LaunchFileExplorer(const std::filesystem::path& path) { assert_always(); }
void LaunchFileExplorer(const std::filesystem::path& path) {
auto cmd = std::string("xdg-open ");
cmd.append(path);
system(cmd.c_str());
}
void ShowSimpleMessageBox(SimpleMessageBoxType type, std::string_view message) {
void* libsdl2 = dlopen("libSDL2.so", RTLD_LAZY | RTLD_LOCAL);