[GRASS-dev] Leftover GUI when leaving a GRASS session problem

Markus Neteler neteler at osgeo.org
Tue Aug 11 02:55:31 EDT 2009


Hi,

we still have the problem of leftover GUI(s) when leaving a GRASS session.
I wonder if we could get out more of the eval statement below to kill the
GUI process when leaving?

------- init.sh snippet -------
        tcltk | gis.m | oldtcltk | d.m | wxpython)

            if [ "$GRASS_GUI" = "tcltk" ] || \
                [ "$GRASS_GUI" = "gis.m" ] || \
                [ "$GRASS_GUI" = "oldtcltk" ] || \
                [ "$GRASS_GUI" = "d.m" ] ; then

                    # eval `foo` will return subshell return code and
not app foo return code!!!
                    eval '"$GRASS_WISH" -file "$TCLTKGRASSBASE/gis_set.tcl"'
                    thetest=$?
            else
                    eval '"$GRASS_PYTHON" "$WXPYTHONGRASSBASE/gis_set.py"'
                    thetest=$?
            fi

            case $thetest in
                1)
------- init.sh snippet end -------

?

Markus


More information about the grass-dev mailing list