commit 1df8bf6a70b9ba4bdd0588d56e9f18fc0f19b3b7 parent cd378b4d2c908773b0152204686b9b17b77d9f3c Author: Alex Balgavy <alex@balgavy.eu> Date: Mon, 22 Nov 2021 19:10:54 +0100 mpvq: use setsid with mpv Diffstat:
M | scripts/mpvq | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/mpvq b/scripts/mpvq @@ -13,7 +13,7 @@ play() { else terminal-notifier -title "Playing video" -message "MPV is launching..." -group "mpv" 1>/dev/null 2>&1 # This converts FIFO to a domain socket - mpv --idle=yes --volume=50 --no-terminal --x11-name=MPV-Q --input-ipc-server="$HOME"/.cache/mpv/input --log-file="$HOME"/.cache/mpv/mpv.log --player-operation-mode=pseudo-gui "$1" & + setsid -f mpv --idle=yes --volume=50 --no-terminal --x11-name=MPV-Q --input-ipc-server="$HOME"/.cache/mpv/input --log-file="$HOME"/.cache/mpv/mpv.log --player-operation-mode=pseudo-gui "$1" fi }