1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Temporary image cover goes in /tmp.

* Fixes TWK-430
This commit is contained in:
Alejandro Wainzinger
2011-08-18 15:58:15 -07:00
parent 622150fca2
commit 2f4805c119

View File

@@ -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!";