From: paul Date: Wed, 25 May 2016 13:06:19 +0000 (+0000) Subject: fix pulseaudio env variable, provide additional watch link X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=1e04021c26ba9d4b7cd3acaed54d24cac3d83e22;p=serve0 fix pulseaudio env variable, provide additional watch link svn path=/trunk/; revision=134 --- diff --git a/actions/watch.sh b/actions/watch.sh index 60d29db..48f465f 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -72,7 +72,7 @@ case "${_COOKIE[watch]}" in fi export DISPLAY=":0" - uid="$(id |sed -rn '1s;.*uid=([0-9]+)[^0-9].*;1;p')" + uid="$(id |sed -rn '1s;.*uid=([0-9]+)[^0-9].*;\1;p')" export XDG_RUNTIME_DIR="/run/user/$uid" # required for Pulseaudio nohup /usr/bin/mplayer -ao pulse \ diff --git a/pages/list.sh b/pages/list.sh index 7b68f29..337676e 100755 --- a/pages/list.sh +++ b/pages/list.sh @@ -81,7 +81,7 @@ _printVideo(){ -

${htmlinfo}

+

${htmlinfo}

${minutes}min