[GRASSGUI] Re: [grass-addons] r363 - trunk/grassaddons/gui

Glynn Clements glynn at gclements.plus.com
Wed Mar 28 20:17:38 EDT 2007


barton at grass.itc.it wrote:

> Author: barton
> Date: 2007-03-28 23:53:04 +0200 (Wed, 28 Mar 2007)
> New Revision: 363
> 
> Modified:
>    trunk/grassaddons/gui/wxgrass
> Log:
> Starting non-modally
> 
> Modified: trunk/grassaddons/gui/wxgrass
> ===================================================================
> --- trunk/grassaddons/gui/wxgrass	2007-03-28 20:48:41 UTC (rev 362)
> +++ trunk/grassaddons/gui/wxgrass	2007-03-28 21:53:04 UTC (rev 363)
> @@ -8,9 +8,9 @@
>  SYSTEM=`uname -s`
>  
>  if [ "$SYSTEM" = "Darwin" ] ; then
> -	pythonw "$GISBASE/etc/wx/wxgui.py" -name wxgui_py
> +	pythonw "$GISBASE/etc/wx/wxgui.py" -name wxgui_py &
>  else
> -	python "$GISBASE/etc/wx/wxgui.py" -name wxgui_py
> +	python "$GISBASE/etc/wx/wxgui.py" -name wxgui_py &
>  fi

I'm not sure that this is a good idea; if you want wxgrass to run in
the background, you can use "wxgrass &".

If this remains, stdout and stderr should be redirected (e.g. to
/dev/null), so that they don't create mess on the terminal (or suspend
wxgrass if output from a background process results in SIGTTOU).

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-gui mailing list