fix iTunes automatically opening

This commit is contained in:
Andrew Titmuss 2016-10-17 16:53:30 +11:00
parent 71ece3de5b
commit 21144eb973
No known key found for this signature in database
GPG Key ID: 8AF42975C787E0B2
1 changed files with 1 additions and 1 deletions

View File

@ -1242,7 +1242,7 @@ getsong() {
song="$(gpmdp-remote current)" song="$(gpmdp-remote current)"
state="$(gpmdp-remote status)" state="$(gpmdp-remote status)"
elif [ -n "$(ps x | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then elif [ -n "$(ps x | awk '!(/awk/ || /Helper/ || /Cache/) && /iTunes.app/')" ]; then
song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " & name of current track as string')" song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " & name of current track as string')"
state="$(osascript -e 'tell application "iTunes" to player state as string')" state="$(osascript -e 'tell application "iTunes" to player state as string')"