Parcourir la 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/)
(merge https://trac.osgeo.org/grass/changeset/64608 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64609 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa il y a 10 ans
Parent
commit
d0ce1f2bbf
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

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