[GRASS-dev] hardcoded 'xterm': wrapper?

Markus Neteler neteler at itc.it
Thu Aug 31 09:35:13 EDT 2006


On Thu, Aug 31, 2006 at 02:17:34PM +0100, Glynn Clements wrote:
> > variables...
> 
> In which case, grass-xterm-wrapper should simply set GRASS_XTERM to
> "xterm" if it isn't already set, and not attempt to use
> x-terminal-emulator.
> 
> If the user wants to use x-terminal-emulator, they'll need to set
> GRASS_XTERM themselves, and ensure that their chosen program works.
> 
> GRASS uses environment variables extensively; a terminal emulator
> which clears the environment is essentially detaching itself from the
> GRASS session.

OK, I have simplified this now to:

################ snip ##############

#!/bin/sh
# script to wrap xterm

if [ -z "$GRASS_XTERM" ] ; then
   GRASS_XTERM=xterm
fi

# run command
exec $GRASS_XTERM "$@"

########## snap ####################

Markus




More information about the grass-dev mailing list