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

Check for spotify binary on osx in same location as linux

This commit is contained in:
Leo Franchi
2012-11-27 10:42:29 -05:00
parent e9e9e42c87
commit 770405b0eb

View File

@@ -247,14 +247,10 @@ SpotifyAccount::killExistingResolvers()
bool
SpotifyAccount::checkForResolver()
{
#if defined(Q_OS_MAC)
const QDir path = QCoreApplication::applicationDirPath();
QFile file( path.absoluteFilePath( "spotify_tomahawkresolver" ) );
return file.exists();
#elif defined(Q_OS_WIN)
#if defined(Q_OS_WIN)
QDir appDataDir = TomahawkUtils::appDataDir();
return appDataDir.exists( QString( "atticaresolvers/%1/spotify_tomahawkresolver.exe" ).arg( s_resolverId ) );
#elif defined(Q_OS_LINUX)
#elif defined(Q_OS_LINUX) || defined(Q_OS_MAC)
QDir appDataDir = TomahawkUtils::appDataDir();
return appDataDir.exists( QString( "atticaresolvers/%1/spotify_tomahawkresolver" ).arg( s_resolverId ) );
#endif