Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(visibly) complain about missing $DISPLAY
git-svn-id: http://svn.osgeo.org/qgis/trunk@13679 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 7, 2010
1 parent 586b642 commit eae0f29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/main.cpp
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 eae0f29

Please sign in to comment.