ptgdp: Silence rofi errors

This commit is contained in:
Salt 2019-07-04 03:59:54 -05:00
parent 524a013cbb
commit 6ed11f8c8a

2
ptgdp
View File

@ -120,7 +120,7 @@ rofimenu() {
normal dialog-error 5000
error "No playlists found" 61
fi
choice="$(rofi -dmenu -i -p "$_name" <<< "$playlists")"
choice="$(rofi -dmenu -i -p "$_name" <<< "$playlists" 2>/dev/null)"
[ -z "$choice" ] && error "User aborted at selection" 62
playlist "$_optrofi"/"$choice".gdp
return 0