From 63c2d94a98750eedfb8fd113d6a52c21e9f05ff4 Mon Sep 17 00:00:00 2001 From: Peter Wright Date: Mon, 19 May 2025 19:29:44 +0100 Subject: [PATCH] Implement LaunchFileExplorer the same as LaunchWebBrowser. --- src/xenia/base/system_gnulinux.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xenia/base/system_gnulinux.cc b/src/xenia/base/system_gnulinux.cc index e9b0b5297..1615eed0d 100644 --- a/src/xenia/base/system_gnulinux.cc +++ b/src/xenia/base/system_gnulinux.cc @@ -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);