Remove manual qmlcachegen invocation for internal Qt QML files

It's not safe to always assume we can always precompile everything.
Instead set QML_CACHE_DIR to ensure the files go to our desired location.
This commit is contained in:
Cameron Gutman
2023-09-10 15:03:53 -05:00
parent 87eba9bb89
commit 80062d262e
4 changed files with 16 additions and 9 deletions

View File

@@ -301,6 +301,11 @@ int main(int argc, char *argv[])
Path::initialize(false);
}
// Override the default QML cache directory with the one we chose
if (qEnvironmentVariableIsEmpty("QML_DISK_CACHE_PATH")) {
qputenv("QML_DISK_CACHE_PATH", Path::getQmlCacheDir().toUtf8());
}
#ifdef USE_CUSTOM_LOGGER
#ifdef LOG_TO_FILE
QDir tempDir(Path::getLogDir());