KoResourcePaths.cpp (krita-5.1.3.tar.xz) | : | KoResourcePaths.cpp (krita-5.1.4.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 132 | skipping to change at line 132 | |||
else { | else { | |||
qFatal("Cannot calculate the bundle path from the app path"); | qFatal("Cannot calculate the bundle path from the app path"); | |||
qInfo() << "If running tests set KIS_TEST_PREFIX_PATH to krita insta ll prefix"; | qInfo() << "If running tests set KIS_TEST_PREFIX_PATH to krita insta ll prefix"; | |||
} | } | |||
} | } | |||
return bundlePath; | return bundlePath; | |||
#elif defined(Q_OS_ANDROID) | #elif defined(Q_OS_ANDROID) | |||
// qApp->applicationDirPath() isn't writable and android system won't allow | // qApp->applicationDirPath() isn't writable and android system won't allow | |||
// any files other than libraries | // any files other than libraries | |||
return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + " | // NOTE the subscript [1]. It points to the internal location. | |||
/"; | return QStandardPaths::standardLocations(QStandardPaths::AppDataLocation)[1] | |||
+ "/"; | ||||
#else | #else | |||
return qApp->applicationDirPath() + "/../"; | return qApp->applicationDirPath() + "/../"; | |||
#endif | #endif | |||
} | } | |||
} | } | |||
class Q_DECL_HIDDEN KoResourcePaths::Private { | class Q_DECL_HIDDEN KoResourcePaths::Private { | |||
public: | public: | |||
QMap<QString, QStringList> absolutes; // For each resource type, the list of absolute paths, from most local (most priority) to most global | QMap<QString, QStringList> absolutes; // For each resource type, the list of absolute paths, from most local (most priority) to most global | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added |