files: continue using temp location for temp files and use cache location just for ocio

This commit is contained in:
itsmattkc
2020-09-28 14:20:48 +10:00
parent a82e2d5ae5
commit 909dd37cc2
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ QString FileFunctions::GetApplicationPath()
QString FileFunctions::GetTempFilePath()
{
QString temp_path = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation))
QString temp_path = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::TempLocation))
.filePath(QCoreApplication::organizationName()))
.filePath(QCoreApplication::applicationName());
+2 -1
View File
@@ -22,6 +22,7 @@
#include <QDir>
#include <QFloat16>
#include <QStandardPaths>
#include "common/define.h"
#include "common/filefunctions.h"
@@ -82,7 +83,7 @@ void ColorManager::SetUpDefaultConfig()
}
// Extract OCIO config - kind of hacky, but it'll work
QString dir = QDir(FileFunctions::GetTempFilePath()).filePath(QStringLiteral("ocioconf"));
QString dir = QDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation)).filePath(QStringLiteral("ocioconf"));
FileFunctions::CopyDirectory(QStringLiteral(":/ocioconf"),
dir,