From 909dd37cc2464b6a4a5c31edd802a4c56e25552c Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 28 Sep 2020 14:20:48 +1000 Subject: [PATCH] files: continue using temp location for temp files and use cache location just for ocio --- app/common/filefunctions.cpp | 2 +- app/render/colormanager.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/common/filefunctions.cpp b/app/common/filefunctions.cpp index e137de3e8..f087dd90b 100644 --- a/app/common/filefunctions.cpp +++ b/app/common/filefunctions.cpp @@ -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()); diff --git a/app/render/colormanager.cpp b/app/render/colormanager.cpp index 7c713edd6..2e4f496dd 100644 --- a/app/render/colormanager.cpp +++ b/app/render/colormanager.cpp @@ -22,6 +22,7 @@ #include #include +#include #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,