Skip to content

Commit e703bdf

Browse files
committed
set correct prefixPath()
1 parent e87f79d commit e703bdf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/qgsapplication.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ void QgsApplication::init( QString customConfigPath )
139139
{
140140
#if defined(Q_WS_MACX) || defined(Q_WS_WIN32) || defined(WIN32)
141141
setPrefixPath( applicationDirPath(), true );
142+
#elif defined(ANDROID)
143+
// this is "/data/data/org.qgis.qgis" in android
144+
QDir myDir( QDir::homePath() );
145+
myDir.cdUp();
146+
QString myPrefix = myDir.absolutePath();
147+
setPrefixPath( myPrefix, true );
142148
#else
143149
QDir myDir( applicationDirPath() );
144150
myDir.cdUp();

0 commit comments

Comments
 (0)