[GRASS-dev] Re: [GRASS GIS] #500: GUI menu item to swtich GUIs

GRASS GIS trac at osgeo.org
Wed Feb 25 20:56:34 EST 2009


#500: GUI menu item to swtich GUIs
--------------------------+-------------------------------------------------
  Reporter:  hamish       |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  default      |     Version:  6.4.0 RCs                
Resolution:               |    Keywords:  gui                      
  Platform:  All          |         Cpu:  All                      
--------------------------+-------------------------------------------------
Comment (by hamish):

 I tried the following patch, it seemed to work from the commandline with
 --ui, but still not from d.m.

 {{{
 Index: gui/scripts/g.change.gui.sh
 ===================================================================
 --- gui/scripts/g.change.gui.sh (revision 36060)
 +++ gui/scripts/g.change.gui.sh (working copy)
 @@ -41,6 +41,11 @@
      exit 1
  fi

 +if [ ! -x "`which $(basename "$0")`" ] ; then
 +    PATH="$PATH:$GISBASE/etc/gui/scripts"
 +    export PATH
 +fi
 +
  if [ "$1" != "@ARGS_PARSED@" ] ; then
      exec g.parser "$0" "$@"
  fi
 }}}


 ???

 Running it from the wxPython GUI still needs to be tested by someone
 please.  Config -> Working enviro -> Change default GUI



 Also, I was thinking it could be useful to add an entry after 'Help->About
 system' like 'Help->Show system environment' which would run "set" and
 dump the results to the Output window. It would help in debugging.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/500#comment:6>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list