[GRASS5] [bug #2593] (grass) init.sh uses non-default HTML browser (i.e. konqueror on a GNOME desktop)

Request Tracker grass-bugs at intevation.de
Thu Aug 26 05:28:53 EDT 2004


this bug's URL: http://intevation.de/rt/webrt?serial_num=2593
-------------------------------------------------------------------------

Subject: init.sh uses non-default HTML browser (i.e. konqueror on a GNOME desktop)

Platform: GNU/Linux/i386 
grass obtained from: CVS 
grass binary for platform: Compiled from Sources 
GRASS Version: 5.7.cvs checked out on 20040823 
 
grass51/lib/init/init.sh has a static list of preferred HTML browsers which  
doesn't take into account the user's preferences (unless specified  
explicitly for GRASS via GRASS_HTML_BROWSER). I suggest to add the  
"htmlview" script to the top of this list, this should at least on Red Hat  
Linux systems better match the users's default browser.  
  
--- ./lib/init/init.sh.orig     2004-08-26 11:25:06.000000000 +0200  
+++ ./lib/init/init.sh  2004-08-26 11:26:04.000000000 +0200  
@@ -193,7 +193,10 @@  
                                 s/:$/:./  
                                 s/:/ /g'`  
     do  
-        if [ -f "$i/konqueror" ] ; then  
+        if [ -f "$i/htmlview" ] ; then  
+            GRASS_HTML_BROWSER=htmlview  
+            break  
+        elif [ -f "$i/konqueror" ] ; then  
             GRASS_HTML_BROWSER=konqueror  
             break  
         elif [ -f "$i/mozilla" ] ; then  
  

-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list