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

Markus Neteler neteler at itc.it
Fri Aug 27 02:01:49 EDT 2004


On Thu, Aug 26, 2004 at 11:28:53AM +0200, Request Tracker wrote:
> 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  
>

Done in CVS.

Markus   




More information about the grass-dev mailing list