mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-43391
This commit is contained in:
@@ -162,18 +162,17 @@ public class BrowserUtil {
|
||||
try {
|
||||
Desktop.getDesktop().browse(uri);
|
||||
LOG.debug("Browser launched using JDK 1.6 API");
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else {
|
||||
List<String> command = getDefaultBrowserCommand();
|
||||
if (command != null) {
|
||||
launchBrowserByCommand(uri, command);
|
||||
return;
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.warn("Error while using Desktop API, fallback to CLI", e);
|
||||
}
|
||||
}
|
||||
|
||||
List<String> command = getDefaultBrowserCommand();
|
||||
if (command != null) {
|
||||
launchBrowserByCommand(uri, command);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user