X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fwatch.sh;h=39ca7e0cecd7833e28ec69c1937b7b54cd281aac;hb=b377b42e875ab32dc24cb64f588ad0b650b47d6f;hp=c0cdb377c8904d5849335fbdf4b4c834f34f8054;hpb=7bf56bff8e30ea23047422e05d1ef5352ea9cc31;p=serve0 diff --git a/actions/watch.sh b/actions/watch.sh index c0cdb37..39ca7e0 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -1,7 +1,6 @@ #!/bin/zsh cgi_refdata -cgi_cookie info="${_GET[i]}" order="${_REF[o]}" search="${_REF[s]}" @@ -48,7 +47,7 @@ case "${_COOKIE[watch]}" in redirect "$videourl" ;; server) - DISPLAY=:0 nohup /usr/bin/mplayer -ao pulse:jupiter --quiet "${_DATA}/videos/$info" >&- 2>&- & + DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1006 nohup /usr/bin/mplayer -ao pulse --quiet "${_DATA}/videos/$info" >/dev/null 2>/dev/null & redirect "$HTTP_REFERER" ;; *) redirect "?p=view&${watch_link}"