[GRASS-user] FW: How to allow a file browser dialog in shells cripts

Hamish hamish_nospam at yahoo.com
Thu Jun 22 20:50:15 EDT 2006


Eric Patton wrote:
> Thanks Hamish and Markus for the reference. Is there a way to have the
> file loader dialog box open in a certain directory like $GISDBASE, for
> instance?

It is just the pwd, cd to there in the script first. I don't know
how the parser will treat that though- it might cause problems.

#!/bin/sh
eval `g.gisenv | grep GISDBASE`
cd "$GISDBASE"

#% option

?
Hamish




More information about the grass-user mailing list