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,