aboutsummaryrefslogtreecommitdiff
path: root/bin/player
diff options
context:
space:
mode:
Diffstat (limited to 'bin/player')
-rwxr-xr-xbin/player2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/player b/bin/player
index 129942e..fd7d11b 100755
--- a/bin/player
+++ b/bin/player
@@ -79,7 +79,7 @@ eval "$(assert-arg -- "$ACTION" 'ACTION')"
CURRENT_PLAYER_PATH="$XDG_CACHE_HOME"/euandreh-mpris-player.txt
-CURRENT_PLAYER="$(cat "$CURRENT_PLAYER_PATH" ||:)"
+CURRENT_PLAYER="$(cat "$CURRENT_PLAYER_PATH" 2>/dev/null ||:)"
AVAILABLE_PLAYERS="$(playerctl --list-all | LANG=POSIX.UTF-8 sort)"
pick_first() {