]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/browser/BrowserLauncher.java
Version 16, February 2014
[GpsPrune.git] / tim / prune / function / browser / BrowserLauncher.java
index d23a2f72cee7920c3173ddebcab15401fceaae35..4ba4b8d6a40cbe08de0864a565552128b91afe7e 100644 (file)
@@ -26,12 +26,15 @@ public abstract class BrowserLauncher
                {
                        // which exists, so try browsers in turn
                        String[] browsersToTry = {"firefox", "iceweasel", "konqueror", "opera", "epiphany",
-                               "mozilla", "safari", "google-chrome", "lynx"};
+                               "mozilla", "chromium", "midori", "safari", "lynx"};
                        String browserFound = null;
-                       for (int i=0; i<browsersToTry.length && browserFound == null; i++)
+                       for (String browser : browsersToTry)
                        {
-                               if (commandExists(browsersToTry[i]))
-                                       browserFound = browsersToTry[i];
+                               if (commandExists(browser))
+                               {
+                                       browserFound = browser;
+                                       break;
+                               }
                        }
                        if (browserFound != null) {
                                _browserCommand = new String[] {browserFound, null};