Run all desktop open commands async

This commit is contained in:
crschnick
2026-02-09 13:53:18 +00:00
parent 2cfbe66409
commit 6bd0c4f61a
@@ -63,7 +63,7 @@ public class DesktopHelper {
if (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) {
if (OsType.ofLocal() == OsType.LINUX) {
LocalExec.readStdoutIfPossible("xdg-open", file.toString());
LocalExec.executeAsync("xdg-open", file.toString());
return;
}
}
@@ -99,7 +99,7 @@ public class DesktopHelper {
// Windows does not support Action.BROWSE_FILE_DIR
if (OsType.ofLocal() == OsType.WINDOWS) {
// Explorer does not support single quotes, so use normal quotes
LocalExec.readStdoutIfPossible("explorer", "/select,", "\"" + file + "\"");
LocalExec.executeAsync("explorer", "/select,", "\"" + file + "\"");
return;
}