[GRASS-dev] Re: gis.m/d.m don't background on OSX
Hamish
hamish_nospam at yahoo.com
Sun Dec 17 18:08:47 EST 2006
William Kyngesburye wrote:
>
> The recent change to init.sh to not explicitly background doesn't
> appear to work on OSX (X11 build).
>
> if [ "$osxaqua" ] ; then
> "$GISBASE/scripts/gis.m" | sh &
> else
> "$GISBASE/scripts/gis.m"
> fi
>
> An Aqua build still explicitly backgrounds, but not an X11 build.
> And the backgrounding within gis.m/d.m doesn't happen.
I made that change as the d.m and gis.m scripts background themselves:
gui/tcltk/gis.m/gis.m:
-----------------------
[...]
if [ $# -eq 0 ] ; then
if [ "$HOSTTYPE" = "macintosh" -o "$HOSTTYPE" = "powermac" -o "$HOSTTYPE" = "powerpc" -o "$HOSTTYPE" = "intel-pc" ] ; then
exec "$GRASS_WISH" $GISBASE/etc/gm/gm.tcl -name gm_tcl
else
exec "$GRASS_WISH" $GISBASE/etc/gm/gm.tcl -name gm_tcl &
fi
exit
fi
if [ "$1" != "@ARGS_PARSED@" ] ; then
exec g.parser "$0" "$@"
fi
exec "$GRASS_WISH" "$GISBASE/etc/gm/gm.tcl" -name gm_tcl "$GIS_OPT_GRC" sh &
-----------------------
gui/tcltk/d.m/d.m is much the same.
before randomly adding "&" back in, I'd like to understand why it fails.
These platform tests seems slighly messy to me.
Hamish
More information about the grass-dev
mailing list