Skip to content

Commit 15c1482

Browse files
author
jef
committed
(visibly) complain about missing $DISPLAY
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13679 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7494c8f commit 15c1482

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/main.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,11 @@ int main( int argc, char *argv[] )
469469
#endif
470470
if ( !myUseGuiFlag )
471471
{
472-
QgsDebugMsg( "QGIS starting in non-interactive mode not supported.\n You "
473-
"are seeing this message most likely because you have no DISPLAY "
474-
"environment variable set." );
472+
std::cerr << QObject::tr(
473+
"QGIS starting in non-interactive mode not supported.\n"
474+
"You are seeing this message most likely because you "
475+
"have no DISPLAY environment variable set.\n"
476+
).toUtf8().constData();
475477
exit( 1 ); //exit for now until a version of qgis is capabable of running non interactive
476478
}
477479
QgsApplication myApp( argc, argv, myUseGuiFlag );

0 commit comments

Comments
 (0)