From 21144eb973a402a8bf0da6c14d2245eed53364cb Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Mon, 17 Oct 2016 16:53:30 +1100 Subject: [PATCH] fix iTunes automatically opening --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index b2f5a61e..282b9bee 100755 --- a/neofetch +++ b/neofetch @@ -1242,7 +1242,7 @@ getsong() { song="$(gpmdp-remote current)" 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')" state="$(osascript -e 'tell application "iTunes" to player state as string')"