From 770405b0eb3225429ba0f339f831c369581dbb6d Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 27 Nov 2012 10:42:29 -0500 Subject: [PATCH] Check for spotify binary on osx in same location as linux --- src/libtomahawk/accounts/spotify/SpotifyAccount.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp b/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp index 76d9ac5f5..751ef52e3 100644 --- a/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp +++ b/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp @@ -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