Browse Source

Try to use users preferred browser for HTML

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42537 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 15 năm trước cách đây
mục cha
commit
8e04ea261c
1 tập tin đã thay đổi với 2 bổ sung6 xóa
  1. 2 6
      lib/init/grass.py

+ 2 - 6
lib/init/grass.py

@@ -334,14 +334,10 @@ def set_browser():
 
 	if windows or cygwin:
 	    # MinGW startup moved to into init.bat
-	    iexplore = os.path.join(os.getenv('ProgramFiles'), "Internet Explorer", "iexplore.exe")
-	    if os.access(iexplore, os.F_OK):
-		browser = iexplore
-	    else:
-		browser = "iexplore"
+	    browser = "explorer"
 	else:
 	    # the usual suspects
-	    browsers = [ "htmlview", "konqueror", "mozilla", "mozilla-firefox",
+	    browsers = [ "xdg-open", "htmlview", "konqueror", "mozilla", "mozilla-firefox",
                          "firefox", "iceweasel", "opera", "netscape", "dillo", "lynx", "links", "w3c" ]
 	    for b in browsers:
 		if find_exe(b):