altdesktop / playerctl

🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
GNU Lesser General Public License v3.0
2.49k stars 81 forks source link

Getting current player name hangs the bash until it executed with ^C #324

Open ghost opened 11 months ago

ghost commented 11 months ago

Getting the current player name with playerctl status --follow --format "{{ playerName }}" hangs the bash. I wonder if it is a bug or if it is working as intended. I can reproduce every time I run the command. Using EndeavourOs(Arch). FYI, I am attempting to play-pause the most recently updated player.

elParaguayo commented 11 months ago

Isn't that exactly what --follow is meant to do?

       -F, --follow
              Block and output the updated query when it changes