mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-01-21 21:28:44 -05:00
Desktop helper fixes [stage]
This commit is contained in:
@@ -20,10 +20,6 @@ public class DesktopHelper {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
URI parsed;
|
||||
try {
|
||||
parsed = URI.create(uri);
|
||||
@@ -33,6 +29,13 @@ 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 {
|
||||
|
||||
3
dist/changelog/19.4_incremental.md
vendored
Normal file
3
dist/changelog/19.4_incremental.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
- Fix URLs not opening in current Debian sid
|
||||
- Improve handling of connection filter
|
||||
- Improve Korean translations (Thanks to @nillpoe)
|
||||
Reference in New Issue
Block a user