Skip to content
Permalink
Browse files

Added env var for custom plugin directory

  • Loading branch information
elpaso committed Oct 9, 2014
1 parent 4c6bf30 commit 82135a7bc065b025ed2e2dba89ab0050c4268a41
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/core/qgsapplication.cpp
@@ -93,7 +93,14 @@ void QgsApplication::init( QString customConfigPath )
{
if ( customConfigPath.isEmpty() )
{
customConfigPath = QString( "%1/.qgis%2/" ).arg( QDir::homePath() ).arg( QGis::QGIS_VERSION_INT / 10000 );
if ( getenv( "QGIS_CUSTOM_CONFIG_PATH" ) )
{
customConfigPath = getenv( "QGIS_CUSTOM_CONFIG_PATH" );
}
else
{
customConfigPath = QString( "%1/.qgis%2/" ).arg( QDir::homePath() ).arg( QGis::QGIS_VERSION_INT / 10000 );
}
}

qRegisterMetaType<QgsGeometry::Error>( "QgsGeometry::Error" );

0 comments on commit 82135a7

Please sign in to comment.
You can’t perform that action at this time.