Changeset 292 in josm for src/org/openstreetmap/josm/tools/OpenBrowser.java
- Timestamp:
- 2007-07-19T23:19:21+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/tools/OpenBrowser.java
r200 r292 52 52 53 53 private static void linux(String url) throws IOException { 54 try { 55 Runtime.getRuntime().exec("gnome-open " + url); 56 } catch (IOException e) { 57 Runtime.getRuntime().exec("kfmclient openURL " + url); 54 String[] programs = {"gnome-open", "kfmclient openURL", "firefox"}; 55 for (String program : programs) { 56 try { 57 Runtime.getRuntime().exec(program+" "+url); 58 return; 59 } catch (IOException e) { 60 } 58 61 } 59 62 }
Note:
See TracChangeset
for help on using the changeset viewer.