mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-25 01:45:37 +00:00
Run all desktop open commands async
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user