From 2b6efe5c7a957cbaae21af83840c8b45237a5882 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 14 Nov 2011 17:20:19 +0100 Subject: [PATCH] Flag to allow usage of QGIS server with an x-server (vector pdf output for patterns) --- src/mapserver/qgis_map_serv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapserver/qgis_map_serv.cpp b/src/mapserver/qgis_map_serv.cpp index 08b25b6c67fb..7dae543cf89a 100644 --- a/src/mapserver/qgis_map_serv.cpp +++ b/src/mapserver/qgis_map_serv.cpp @@ -148,7 +148,7 @@ int main( int argc, char * argv[] ) qInstallMsgHandler( dummyMessageHandler ); #endif - QgsApplication qgsapp( argc, argv, false ); + QgsApplication qgsapp( argc, argv, getenv( "DISPLAY" ) ); //Default prefix path may be altered by environment variable char* prefixPath = getenv( "QGIS_PREFIX_PATH" );