diff --git a/app/src/main/java/io/xpipe/app/util/DesktopHelper.java b/app/src/main/java/io/xpipe/app/util/DesktopHelper.java index dacdcebe9..87a24bf66 100644 --- a/app/src/main/java/io/xpipe/app/util/DesktopHelper.java +++ b/app/src/main/java/io/xpipe/app/util/DesktopHelper.java @@ -61,7 +61,7 @@ public class DesktopHelper { return; } - if (!Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { + if (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) { if (OsType.ofLocal() == OsType.LINUX) { LocalExec.readStdoutIfPossible("xdg-open", file.toString()); return; @@ -70,9 +70,9 @@ public class DesktopHelper { // This can be a blocking operation ThreadHelper.runAsync(() -> { - if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { + if (Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) { try { - Desktop.getDesktop().browse(file.toFile().toURI()); + Desktop.getDesktop().open(file.toFile()); return; } catch (Exception e) { // Some basic linux systems have trouble with the API call