#include "util/util.hpp" #if ARCH_WIN #include #include #endif namespace rack { void openBrowser(std::string url) { #if ARCH_LIN std::string command = "xdg-open " + url; (void)system(command.c_str()); #endif #if ARCH_MAC std::string command = "open " + url; system(command.c_str()); #endif #if ARCH_WIN ShellExecute(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL); #endif } } // namespace rack