From da1906f94b44edeb0d106422a0d9436b40bf1575 Mon Sep 17 00:00:00 2001 From: InviseDivine Date: Tue, 10 Mar 2026 22:14:39 +0200 Subject: [PATCH] Fix: linux open links --- src/AppPlatform_glfw.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AppPlatform_glfw.h b/src/AppPlatform_glfw.h index 8d3ee28..4133cf0 100755 --- a/src/AppPlatform_glfw.h +++ b/src/AppPlatform_glfw.h @@ -130,6 +130,9 @@ public: virtual void openURL(const std::string& url) { #ifdef _WIN32 ShellExecuteA(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL); +#elif __linux__ + std::string command = "xdg-open " + url; + system(command.c_str()); #endif }