mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
Check for spotify binary on osx in same location as linux
This commit is contained in:
@@ -247,14 +247,10 @@ SpotifyAccount::killExistingResolvers()
|
|||||||
bool
|
bool
|
||||||
SpotifyAccount::checkForResolver()
|
SpotifyAccount::checkForResolver()
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_WIN)
|
||||||
const QDir path = QCoreApplication::applicationDirPath();
|
|
||||||
QFile file( path.absoluteFilePath( "spotify_tomahawkresolver" ) );
|
|
||||||
return file.exists();
|
|
||||||
#elif defined(Q_OS_WIN)
|
|
||||||
QDir appDataDir = TomahawkUtils::appDataDir();
|
QDir appDataDir = TomahawkUtils::appDataDir();
|
||||||
return appDataDir.exists( QString( "atticaresolvers/%1/spotify_tomahawkresolver.exe" ).arg( s_resolverId ) );
|
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();
|
QDir appDataDir = TomahawkUtils::appDataDir();
|
||||||
return appDataDir.exists( QString( "atticaresolvers/%1/spotify_tomahawkresolver" ).arg( s_resolverId ) );
|
return appDataDir.exists( QString( "atticaresolvers/%1/spotify_tomahawkresolver" ).arg( s_resolverId ) );
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user