[GRASS-dev] hardcoded 'xterm': wrapper?
Markus Neteler
neteler at itc.it
Sun Aug 27 09:09:42 EDT 2006
On Sun, Aug 27, 2006 at 12:52:35PM +0100, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > Debian folks are unhappy with the hardcoded 'xterm' in
> > many places and suggest to replace it with a wrapper script so
> > that they have to change it in a single place later.
> >
> > They do:
> > http://svn.debian.org/wsvn/pkg-grass/packages/grass/branches/6.1/debian/patches/xterm-fix.dpatch?op=file&rev=0&sc=0
> >
> > Should we invent a 'grass-xterm' script (in $ETC?) for
> > that? What would be the needed content (thinking portability)?
>
> That's one option; another is an environment variable, GRASS_XTERM. If
> a wrapper script is used, it should check $GRASS_XTERM before falling
> back to x-terminal-emulator or xterm.
Based on above diff I have prepared a wrapper script and a patch:
http://mpa.itc.it/markus/xterm_wrapper/
I am not sure if and where the 'exec's are needed (see patch)
> In the longer term, we need to make more progress on eliminating the
> need for a terminal. The inability to access certain functionality
> without a (curses-compatible) terminal should be considered a bug.
Agreed.
Markus
More information about the grass-dev
mailing list