Skip to content

Commit

Permalink
(visibly) complain about missing $DISPLAY
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13679 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 7, 2010
1 parent 7494c8f commit 15c1482
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,11 @@ int main( int argc, char *argv[] )
#endif
if ( !myUseGuiFlag )
{
QgsDebugMsg( "QGIS starting in non-interactive mode not supported.\n You "
"are seeing this message most likely because you have no DISPLAY "
"environment variable set." );
std::cerr << QObject::tr(
"QGIS starting in non-interactive mode not supported.\n"
"You are seeing this message most likely because you "
"have no DISPLAY environment variable set.\n"
).toUtf8().constData();
exit( 1 ); //exit for now until a version of qgis is capabable of running non interactive
}
QgsApplication myApp( argc, argv, myUseGuiFlag );
Expand Down

0 comments on commit 15c1482

Please sign in to comment.