More fixes to desktop open

This commit is contained in:
crschnick
2025-11-27 04:00:42 +00:00
parent e100eaaeb9
commit 320047f2cd
@@ -29,13 +29,6 @@ public class DesktopHelper {
return;
}
if (!Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
if (OsType.ofLocal() == OsType.LINUX) {
LocalExec.readStdoutIfPossible("xdg-open", parsed.toString());
return;
}
}
// This can be a blocking operation
ThreadHelper.runAsync(() -> {
try {
@@ -60,6 +53,13 @@ public class DesktopHelper {
return;
}
if (!Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
if (OsType.ofLocal() == OsType.LINUX) {
LocalExec.readStdoutIfPossible("xdg-open", file.toString());
return;
}
}
// This can be a blocking operation
ThreadHelper.runAsync(() -> {
if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {