mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Bad idea to create this path on non-Linux.
This commit is contained in:
@@ -68,12 +68,14 @@ Scrobbler::Scrobbler( QObject* parent )
|
|||||||
//HACK work around a bug in liblastfm---it doesn't create its config dir, so when it
|
//HACK work around a bug in liblastfm---it doesn't create its config dir, so when it
|
||||||
// tries to write the track cache, it fails silently. until we have a fixed version, do this
|
// tries to write the track cache, it fails silently. until we have a fixed version, do this
|
||||||
// code taken from Amarok (src/services/lastfm/ScrobblerAdapter.cpp)
|
// code taken from Amarok (src/services/lastfm/ScrobblerAdapter.cpp)
|
||||||
|
#ifdef Q_WS_X11
|
||||||
QString lpath = QDir::home().filePath( ".local/share/Last.fm" );
|
QString lpath = QDir::home().filePath( ".local/share/Last.fm" );
|
||||||
QDir ldir = QDir( lpath );
|
QDir ldir = QDir( lpath );
|
||||||
if( !ldir.exists() )
|
if( !ldir.exists() )
|
||||||
{
|
{
|
||||||
ldir.mkpath( lpath );
|
ldir.mkpath( lpath );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
connect( TomahawkSettings::instance(), SIGNAL( changed() ),
|
connect( TomahawkSettings::instance(), SIGNAL( changed() ),
|
||||||
SLOT( settingsChanged() ), Qt::QueuedConnection );
|
SLOT( settingsChanged() ), Qt::QueuedConnection );
|
||||||
|
Reference in New Issue
Block a user