]> git.plutz.net Git - serve0/blobdiff - actions/watch.sh
much faster filtering
[serve0] / actions / watch.sh
index c0cdb377c8904d5849335fbdf4b4c834f34f8054..46fc795a8b60a96c914edb5a093097e606d91040 100755 (executable)
@@ -48,7 +48,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}"