Changeset 19143 in josm
- Timestamp:
- 2024-07-15T23:29:48+02:00 (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r19103 r19143 69 69 @Override 70 70 public void openUrl(String url) throws IOException { 71 // Note: xdg-open may not always give "expected" results, see #23804. 72 // At the time, it appeared to be primarily a Brave browser problem. 71 73 for (String program : Config.getPref().getList("browser.unix", 72 Arrays.asList(" xdg-open", "#DESKTOP#", "$BROWSER", "gnome-open", "kfmclient openURL", "firefox"))) {74 Arrays.asList("#DESKTOP#", "xdg-open", "$BROWSER", "gnome-open", "kfmclient openURL", "firefox"))) { 73 75 try { 74 76 if ("#DESKTOP#".equals(program)) { 75 77 Desktop.getDesktop().browse(Utils.urlToURI(url)); 76 } else if (program.startsWith("$")) {77 program = System.getenv().get(program.substring(1));78 Runtime.getRuntime().exec(new String[]{program, url});79 78 } else { 79 if (program.startsWith("$")) { 80 program = System.getenv().get(program.substring(1)); 81 } 80 82 Runtime.getRuntime().exec(new String[]{program, url}); 81 83 }
Note:
See TracChangeset
for help on using the changeset viewer.