Browse Source

Prefer xdg-open and x-www-browser for HTML browser.
GRASS 6 used a shell script to set the GRASS_HTML_BROWSER environment variable.
GRASS 7 reimplemented the shell script in Python.
.
The original version of this patch was made by Francesco Paolo Lovergine, and
ported to Python by Bas Couwenberg.
Author: Francesco Paolo Lovergine <frankie@debian.org>
Author: Bas Couwenberg <sebastic@xs4all.nl>
(taken from http://anonscm.debian.org/cgit/pkg-grass/grass.git/)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64608 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 years ago
parent
commit
7879fd56ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -479,7 +479,7 @@ def set_browser():
             browser = "explorer"
             browser = "explorer"
         else:
         else:
             # the usual suspects
             # the usual suspects
-            browsers = ["xdg-open", "htmlview", "konqueror", "mozilla",
+            browsers = ["xdg-open", "x-www-browser", "htmlview", "konqueror", "mozilla",
                         "mozilla-firefox", "firefox", "iceweasel", "opera",
                         "mozilla-firefox", "firefox", "iceweasel", "opera",
                         "netscape", "dillo", "lynx", "links", "w3c"]
                         "netscape", "dillo", "lynx", "links", "w3c"]
             for b in browsers:
             for b in browsers: