make videos open in background in play from file

This commit is contained in:
ksyasuda 2022-02-07 03:20:29 -08:00
parent c6d5c6a1bd
commit b272fc3994

View File

@ -324,13 +324,13 @@ play_file() {
notification "Playing $1"
case "$PLAYER_FN" in
mpv)
nohup "$PLAYER_FN" --force-media-title="aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1
nohup "$PLAYER_FN" --force-media-title="aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1 &
;;
mplayer)
nohup "$PLAYER_FN" -title "aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1
nohup "$PLAYER_FN" -title "aniwrapper: play-from-file - $1" "$1" > /dev/null 2>&1 &
;;
*)
nohup "$PLAYER_FN" "$1" > /dev/null 2>&1
nohup "$PLAYER_FN" "$1" > /dev/null 2>&1 &
;;
esac
return $?