Hi,

here's a patch that:

- makes openBrowser respect the $BROWSER environment variable
- adds "chromium" to the list of browsers tried

greetings
Felix

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.
Index: src/main/org/h2/tools/Server.java
===================================================================
--- src/main/org/h2/tools/Server.java	(revision 5107)
+++ src/main/org/h2/tools/Server.java	(working copy)
@@ -590,6 +590,9 @@
             String osName = StringUtils.toLowerEnglish(Utils.getProperty("os.name", "linux"));
             Runtime rt = Runtime.getRuntime();
             String browser = Utils.getProperty(SysProperties.H2_BROWSER, null);
+            if (browser == null) {
+                browser = System.getenv("BROWSER");
+            }
             if (browser != null) {
                 if (browser.startsWith("call:")) {
                     browser = browser.substring("call:".length());
@@ -632,7 +635,7 @@
                 // Mac OS: to open a page with Safari, use "open -a Safari"
                 Runtime.getRuntime().exec(new String[] { "open", url });
             } else {
-                String[] browsers = { "google-chrome", "firefox", "mozilla-firefox",
+                String[] browsers = { "chromium", "google-chrome", "firefox", "mozilla-firefox",
                         "mozilla", "konqueror", "netscape", "opera", "midori" };
                 boolean ok = false;
                 for (String b : browsers) {

Reply via email to