[GRASS-SVN] r42537 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 9 13:06:22 EDT 2010


Author: marisn
Date: 2010-06-09 13:06:18 -0400 (Wed, 09 Jun 2010)
New Revision: 42537

Modified:
   grass/trunk/lib/init/grass.py
Log:
Try to use users preferred browser for HTML

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2010-06-09 13:32:32 UTC (rev 42536)
+++ grass/trunk/lib/init/grass.py	2010-06-09 17:06:18 UTC (rev 42537)
@@ -334,14 +334,10 @@
 
 	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):



More information about the grass-commit mailing list