mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
Merge pull request #1104 from dylanaraps/ituneshelper-fix
get_song: stop iTunesHelper from being detected
This commit is contained in:
2
neofetch
2
neofetch
@@ -2358,7 +2358,7 @@ get_song() {
|
||||
|
||||
printf -v players "|%s" "${players[@]}"
|
||||
player="$(ps aux | awk -v pattern="(${players:1})" \
|
||||
'!/ awk / && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')"
|
||||
'!/ awk / && !/iTunesHelper/ && match($0,pattern){print substr($0,RSTART,RLENGTH); exit}')"
|
||||
|
||||
[[ "$music_player" && "$music_player" != "auto" ]] && \
|
||||
player="$music_player"
|
||||
|
Reference in New Issue
Block a user