[GRASS-dev] nviz won't launch from wx GUI menu in WinGRASS

Michael Barton michael.barton at asu.edu
Wed Sep 16 15:53:08 EDT 2009

I took a look at the way that NVIZ is launched from the wx GUI menu.  
The menu item calls a script called "nviz" that lives in the $GISDBASE/ 
bin folder.

The script launches nviz. The menu item does indeed call the script  
and the script launches. But the code in the script doesn't correctly  
launch the NVIZ module in Windows.

Here is the code. Perhaps someone can ID what is wrong with it.

if [ $# -eq 0 ] ; then
   ##nviz is opened in GUI
   exec "$GISBASE/etc/nviz2.2/nviz" -f "$GISBASE/etc/nviz2.2/scripts/ 
   exit 0

exec "$GISBASE/etc/nviz2.2/nviz" -f "$GISBASE/etc/nviz2.2/scripts/ 
nviz2.2_script" ${1+"$@"}

The weird thing is that this DOES seem to work if you launch it from  
the Msys GRASS terminal in Windows.

C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

More information about the grass-dev mailing list