CurrentAlbumCoverLoader: Use standard temp location

Addresses #1540
This commit is contained in:
Jonas Kvinge 2024-09-12 23:00:36 +02:00
parent a3eab902ff
commit 1bb764a2d2
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include <QDir>
#include <QImage>
#include <QTemporaryFile>
#include <QStandardPaths>
#include "core/application.h"
#include "core/song.h"
@ -41,7 +42,7 @@ using std::make_unique;
CurrentAlbumCoverLoader::CurrentAlbumCoverLoader(Application *app, QObject *parent)
: QObject(parent),
app_(app),
temp_file_pattern_(QDir::tempPath() + QStringLiteral("/strawberry-cover-XXXXXX.jpg")),
temp_file_pattern_(QStandardPaths::writableLocation(QStandardPaths::TempLocation) + QStringLiteral("/strawberry-cover-XXXXXX.jpg")),
id_(0) {
setObjectName(QLatin1String(metaObject()->className()));