Skip to content
Permalink
Browse files
(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 eae0f295c6f3e0afab482fa09d85bda9e66e9cc7
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/main.cpp
@@ -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 );

0 comments on commit eae0f29

Please sign in to comment.