Skip to content

Commit

Permalink
Made the grass binary filename to be built in runtime.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11119 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rugginoso committed Jul 20, 2009
1 parent 4723aeb commit 1684fcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/grass/qgsgrassshell.cpp
Expand Up @@ -83,7 +83,9 @@ void QgsGrassShell::initTerminal( QTermWidget *terminal )
QStringList env(""); QStringList env("");
QStringList args(""); QStringList args("");


terminal->setShellProgram("/usr/bin/grass64"); QString shellProgram = QString("/usr/bin/grass%1%2").arg(QgsGrass::versionMajor()).arg(QgsGrass::versionMinor());

terminal->setShellProgram(shellProgram);
env << "TERM=vt100"; env << "TERM=vt100";
env << "GISRC_MODE_MEMORY"; env << "GISRC_MODE_MEMORY";


Expand Down

0 comments on commit 1684fcb

Please sign in to comment.