Commit b58af45c authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #372 from iandrewt/itunes-fix

macOS: fix iTunes automatically opening
parents 71ece3de 21144eb9
...@@ -1242,7 +1242,7 @@ getsong() { ...@@ -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')"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment