Skip to content

Commit 2747842

Browse files
author
rugginoso
committedJul 20, 2009
- Changed the GRASS Shell to determine the grass executable in runtime.
- Cutted off unnecessary includes. git-svn-id: http://svn.osgeo.org/qgis/trunk@11123 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5146e68 commit 2747842

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎src/plugins/grass/qgsgrassshell.cpp‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@
1414
***************************************************************************/
1515
#include <QTabWidget>
1616
#include <QVBoxLayout>
17-
#include <QPushButton>
1817
#include <QShortcut>
1918
#include <QKeySequence>
20-
#include <QSizePolicy>
2119

22-
#include "qgsgrasstools.h"
2320
#include "qtermwidget/qtermwidget.h"
24-
#include "qgsapplication.h"
2521
#include "qgsgrass.h"
2622

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

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.