Skip to content

Commit

Permalink
Fix #23809: Desktop.getDesktop().browse can throw an UnsupportedOpera…
Browse files Browse the repository at this point in the history
…tionException

This probably was never a problem previously because `xdg-open` was tried first
(see #23804 for why that changed).

git-svn-id: https://josm.openstreetmap.de/svn/trunk@19144 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Jul 16, 2024
1 parent 25eecc0 commit e1bdd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void openUrl(String url) throws IOException {
Runtime.getRuntime().exec(new String[]{program, url});
}
return;
} catch (IOException | URISyntaxException e) {
} catch (IOException | UnsupportedOperationException | URISyntaxException e) {
Logging.warn(e);
}
}
Expand Down

0 comments on commit e1bdd79

Please sign in to comment.