From f617b6d695cd41d95a1a4f4048553d82223c5883 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 14 May 2020 13:46:57 -0700 Subject: [PATCH] Fix FILESYSTEM_openDirectory command used on Haiku and *BSD Previously: - Linux: xdg-open - Everything else: open Now: - macOS and Haiku: open - Everything else: xdg-open This is all according to a comment by leo60228 in PR #203. --- desktop_version/src/FileSystemUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 728554c6..d620593b 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -486,10 +486,10 @@ bool FILESYSTEM_openDirectory(const char *dname) return true; } #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__HAIKU__) || defined(__DragonFly__) - #ifdef __linux__ -const char* open_cmd = "xdg-open"; - #else + #if defined(__APPLE__) || defined(__HAIKU__) const char* open_cmd = "open"; + #else +const char* open_cmd = "xdg-open"; #endif extern "C" char** environ;