From 8fab8207ac875dea9e564bd25db3b23272b84379 Mon Sep 17 00:00:00 2001 From: Tristan Deloche Date: Fri, 30 Nov 2018 13:30:53 +0000 Subject: [PATCH] JDK-8214069 : (JavaFX) Default to xdg-open for document opening on UNIX (#293) Fixes #260 --- .../sun/javafx/application/HostServicesDelegate.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/javafx.graphics/src/main/java/com/sun/javafx/application/HostServicesDelegate.java b/modules/javafx.graphics/src/main/java/com/sun/javafx/application/HostServicesDelegate.java index 07dbf347e8..543d42b5b5 100644 --- a/modules/javafx.graphics/src/main/java/com/sun/javafx/application/HostServicesDelegate.java +++ b/modules/javafx.graphics/src/main/java/com/sun/javafx/application/HostServicesDelegate.java @@ -122,8 +122,14 @@ private String toURIString(String filePath) { return toURIString(System.getProperty("user.dir")); } - static final String[] browsers = {"google-chrome", "firefox", "opera", - "konqueror", "mozilla"}; + static final String[] browsers = { + "xdg-open", + "google-chrome", + "firefox", + "opera", + "konqueror", + "mozilla" + }; @Override public void showDocument(final String uri) {