Skip to content
Permalink
Browse files

- Changed the GRASS Shell to determine the grass executable in runtime.

- Cutted off unnecessary includes.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11123 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rugginoso
rugginoso committed Jul 20, 2009
1 parent 2758117 commit 2f3ed4039f3115626d6ec2609f07ba029a040c2a
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/plugins/grass/qgsgrassshell.cpp
@@ -14,14 +14,10 @@
***************************************************************************/
#include <QTabWidget>
#include <QVBoxLayout>
#include <QPushButton>
#include <QShortcut>
#include <QKeySequence>
#include <QSizePolicy>

#include "qgsgrasstools.h"
#include "qtermwidget/qtermwidget.h"
#include "qgsapplication.h"
#include "qgsgrass.h"

#include "qgsgrassshell.h"
@@ -83,7 +79,7 @@ void QgsGrassShell::initTerminal( QTermWidget *terminal )
QStringList env("");
QStringList args("");

QString shellProgram = QString("/usr/bin/grass%1%2").arg(QgsGrass::versionMajor()).arg(QgsGrass::versionMinor());
QString shellProgram = QString("%1/etc/Init.sh").arg(::getenv("GISBASE"));

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

0 comments on commit 2f3ed40

Please sign in to comment.
You can’t perform that action at this time.