Skip to content

Commit 66dc1d5

Browse files
author
rblazek
committed
set GRASS_HTML_BROWSER for term (does not work, overriden by Init.sh
git-svn-id: http://svn.osgeo.org/qgis/trunk@12938 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4952342 commit 66dc1d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/grass/qgsgrassshell.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <QKeySequence>
1919

2020
#include "qgslogger.h"
21+
#include "qgsapplication.h"
2122
#include "qtermwidget/qtermwidget.h"
2223
#include "qgsgrass.h"
2324

@@ -108,6 +109,8 @@ void QgsGrassShell::initTerminal( QTermWidget *terminal )
108109
terminal->setShellProgram( shellProgram );
109110
env << "TERM=vt100";
110111
env << "GISRC_MODE_MEMORY";
112+
// This is also overriden by Init.sh, it should not be run at all, either QGIS is started from shell or a mapset is open from QGIS, Init.sh opens the session second time
113+
env << "GRASS_HTML_BROWSER=" + QgsApplication::pkgDataPath() + "/grass/bin/qgis.g.browser";
111114

112115
args << "-text";
113116
args << QString( "%1/%2/%3" ).arg( QgsGrass::getDefaultGisdbase() ).arg( QgsGrass::getDefaultLocation() ).arg( QgsGrass::getDefaultMapset() );

0 commit comments

Comments
 (0)