Fix: linux open links

This commit is contained in:
InviseDivine
2026-03-10 22:14:39 +02:00
parent 04f13ab4a7
commit da1906f94b

View File

@@ -130,6 +130,9 @@ public:
virtual void openURL(const std::string& url) { virtual void openURL(const std::string& url) {
#ifdef _WIN32 #ifdef _WIN32
ShellExecuteA(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL); ShellExecuteA(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL);
#elif __linux__
std::string command = "xdg-open " + url;
system(command.c_str());
#endif #endif
} }