mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 19:30:31 +00:00
More fixes to desktop open
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user