static swappable void openPlatformBrowser(S url) ctex { if (isHeadless()) ret; /*if (isLinux()) { nohup(print(firstCmdOnPATH_mandatory("xdg-open") + " " + platformQuote(url))); } else {*/ print("Opening platform-specific browser on: " + url); //try { Desktop.getDesktop().browse(uri(url)); /*} catch print e { startFirefox(url); }*/ //} } svoid openPlatformBrowser(URL url) { if (url == null) ret; openPlatformBrowser(str(url)); }