We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caf1a9e commit 80ae165Copy full SHA for 80ae165
src/main/java/net/raphimc/viaproxy/ui/ViaProxyWindow.java
@@ -124,7 +124,11 @@ private void initTabs() {
124
125
public static void openURL(final String url) {
126
try {
127
- Desktop.getDesktop().browse(new URI(url));
+ if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
128
+ Desktop.getDesktop().browse(new URI(url));
129
+ } else {
130
+ new ProcessBuilder("xdg-open", url).start();
131
+ }
132
} catch (Throwable t) {
133
showInfo(I18n.get("generic.could_not_open_url", url));
134
}
0 commit comments