浏览代码

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 年之前
父节点
当前提交
7879fd56ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -479,7 +479,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: