Ignore:
Timestamp:
2007-07-19T23:19:21+02:00 (17 years ago)
Author:
imi
Message:
  • fixed Bug Report module to work better with plugins
  • fixed Plugin.getPreferenceDir and Plugin.copy
  • fixed Ctrl-Q not asking for changed data
  • fixed several typos in Shortcuts
  • removed check for latest josm version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/tools/OpenBrowser.java

    r200 r292  
    5252
    5353        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            }
    5861                }
    5962        }
Note: See TracChangeset for help on using the changeset viewer.