Hi,
2016-04-14 12:07 GMT+02:00 Martin Landa <[email protected]>:
> it's seems that GRASS plugin ignores GRASS-defined variables defined
> in .grass7/bashrc. Even when I export them explicitly in the terminal
> and launch QGIS they are ignored.
I solved issue locally by direct patching the GRASS plugin:
+ // GIS.lab hacks
+ environment.insert( "TMPDIR", "/mnt/booster" );
+ environment.insert( "GRASS_VECTOR_TEMPORARY", "move" );
+ environment.insert( "GRASS_VECTOR_TMPDIR_MAPSET", "0" );
+
if ( mDirect )
{
QStringList variables;
diff --git a/src/plugins/grass/qgsgrassshell.cpp
b/src/plugins/grass/qgsgrassshell.cpp
index adedbcb..8e51634 100644
--- a/src/plugins/grass/qgsgrassshell.cpp
+++ b/src/plugins/grass/qgsgrassshell.cpp
@@ -119,6 +119,9 @@ void QgsGrassShell::initTerminal( QTermWidget *terminal )
env << "GRASS_WISH=wish";
env << "GRASS_TCLSH=tclsh";
env << "GRASS_PYTHON=python";
+ env << "TMPDIR=/mnt/booster";
+ env << "GRASS_VECTOR_TEMPORARY=move";
+ env << "GRASS_VECTOR_TMPDIR_MAPSET=0";
GRASS plugin should read environmental variables from
$HOME/.grass7/bashrc or %APPDIR%/GRASS7/env.bat.
Martin
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer