SPARK-1801 Fix links openining in KDE environment

This commit is contained in:
Alexander198961
2016-09-10 04:35:29 -04:00
committed by wroot
parent 6bf39fd016
commit c33bd25bbd

View File

@ -34,7 +34,16 @@ public class BrowserLauncher {
if (url.startsWith("www")) {
url = "http://" + url;
}
Desktop.getDesktop().browse(new URI(url));
try
{
Desktop.getDesktop().browse(new URI(url));
}
catch(Exception ex)
{
Runtime.getRuntime().exec("xdg-open " + url);
}
} else {
File f = new File(url);
if (f.exists() && Desktop.isDesktopSupported()){