/** * Attempts to launch the browser pointed at by the {@literal "idv.browser.path"} IDV property, if * it has been set. * * @param url URL to open. * @return Either {@code true} if the command-line was executed, {@code false} if either the * command-line wasn't launched or {@literal "idv.browser.path"} was not set. */ private static boolean tryUserSpecifiedBrowser(final String url) { McIDASV mcv = McIDASV.getStaticMcv(); boolean retVal = false; if (mcv != null) { String browserPath = mcv.getProperty("idv.browser.path", (String) null); if ((browserPath != null) && !browserPath.trim().isEmpty()) { try { Runtime.getRuntime().exec(browserPath + ' ' + url); retVal = true; } catch (Exception e) { LogUtil.logException("Executing browser: " + browserPath, e); } } } return retVal; }