From 64df19c7ed345ddabdd82f3d92953ab252167511 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Fri, 11 Apr 2014 11:26:09 +0200 Subject: migrate to multiuser mode Change-Id: I570f00f78bc2189a6d25b1c45a09f5ec148b0418 Signed-off-by: Stephane Desneux --- Script/launch_cam.sh | 8 ++++---- Script/launch_video.sh | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'Script') diff --git a/Script/launch_cam.sh b/Script/launch_cam.sh index 75fcd20..c09dbb2 100755 --- a/Script/launch_cam.sh +++ b/Script/launch_cam.sh @@ -4,17 +4,17 @@ # Launch web cam # -touch /home/app/gst-pid -alreadyrunning=`cat /home/app/gst-pid` +touch $HOME/gst-pid +alreadyrunning=`cat $HOME/gst-pid` cnt=$(echo $alreadyrunning | wc -w) if [ $cnt -lt 2 ] ; then echo "create new $cnt" gst-launch-1.0 v4l2src device=/dev/video$cnt ! video/x-raw, width=640, height=480 ! videoconvert ! waylandsink & - echo $! >> /home/app/gst-pid + echo $! >> $HOME/gst-pid else echo "already running" for x in $alreadyrunning; do kill -9 $x; done - rm -rf /home/app/gst-pid + rm -rf $HOME/gst-pid fi diff --git a/Script/launch_video.sh b/Script/launch_video.sh index 6b23c87..43d54fd 100755 --- a/Script/launch_video.sh +++ b/Script/launch_video.sh @@ -4,21 +4,21 @@ # Launch web cam # -touch /home/app/gstvid-pid -alreadyrunning=`cat /home/app/gstvid-pid` +touch $HOME/gstvid-pid +alreadyrunning=`cat $HOME/gstvid-pid` #URL=http://intel07.vannes/~sdx/Downloads/Amazing%20Nature%20full%20HD%20720p.mp4 #URL=http://intel07.vannes/~sdx/Videos/big_buck_bunny_480p_surround-fix.avi #URL=http://intel07.vannes/~sdx/Videos/caminandes_480p.avi -URL=file:///home/app/AmazingNature_480p.mp4 +URL=file:///usr/share/media/videos/AmazingNature_480p.mp4 if [ $(echo $alreadyrunning | wc -w) -lt 8 ] ; then echo "create new" gst-launch-1.0 playbin uri=$URL & - echo $! >> /home/app/gstvid-pid + echo $! >> $HOME/gstvid-pid else echo "already running" for x in $alreadyrunning; do kill -9 $x; done - rm -rf /home/app/gstvid-pid + rm -rf $HOME/gstvid-pid fi -- cgit v1.2.3