We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6bf30 commit 82135a7Copy full SHA for 82135a7
src/core/qgsapplication.cpp
@@ -93,7 +93,14 @@ void QgsApplication::init( QString customConfigPath )
93
{
94
if ( customConfigPath.isEmpty() )
95
96
- customConfigPath = QString( "%1/.qgis%2/" ).arg( QDir::homePath() ).arg( QGis::QGIS_VERSION_INT / 10000 );
+ if ( getenv( "QGIS_CUSTOM_CONFIG_PATH" ) )
97
+ {
98
+ customConfigPath = getenv( "QGIS_CUSTOM_CONFIG_PATH" );
99
+ }
100
+ else
101
102
+ customConfigPath = QString( "%1/.qgis%2/" ).arg( QDir::homePath() ).arg( QGis::QGIS_VERSION_INT / 10000 );
103
104
}
105
106
qRegisterMetaType<QgsGeometry::Error>( "QgsGeometry::Error" );
0 commit comments