From 2f4805c119b97407a5bc734d0b6f56ec6adf10d1 Mon Sep 17 00:00:00 2001 From: Alejandro Wainzinger Date: Thu, 18 Aug 2011 15:58:15 -0700 Subject: [PATCH] Temporary image cover goes in /tmp. * Fixes TWK-430 --- src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp b/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp index 73acc8f3b..d76843230 100644 --- a/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp +++ b/src/libtomahawk/infosystem/infoplugins/unix/mprisplugin.cpp @@ -610,7 +610,8 @@ MprisPlugin::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, // delete the old tempfile and make new one, to avoid caching of filename by mpris clients if( m_coverTempFile ) delete m_coverTempFile; - m_coverTempFile = new QTemporaryFile( hash["artist"] + "_" + hash["album"] + "_tomahawk_cover.png" ); + m_coverTempFile = new QTemporaryFile( QDir::toNativeSeparators( + QDir::tempPath() + "/" + hash["artist"] + "_" + hash["album"] + "_tomahawk_cover.png" ) ); if( !m_coverTempFile->open() ) { qDebug() << "WARNING: could not write temporary file for cover art!";