summaryrefslogtreecommitdiff
path: root/Script
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>2014-04-11 11:26:09 +0200
committerNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>2014-04-11 11:45:21 +0200
commit64df19c7ed345ddabdd82f3d92953ab252167511 (patch)
tree6cd1c4ae52f344a1070f1a44e2532f7f4f6f63fb /Script
parent3d36c030f980815158a1f181d7dbab9ea0cfb033 (diff)
downloaddesktop-skin-64df19c7ed345ddabdd82f3d92953ab252167511.tar.gz
desktop-skin-64df19c7ed345ddabdd82f3d92953ab252167511.tar.bz2
desktop-skin-64df19c7ed345ddabdd82f3d92953ab252167511.zip
migrate to multiuser mode
Change-Id: I570f00f78bc2189a6d25b1c45a09f5ec148b0418 Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Diffstat (limited to 'Script')
-rwxr-xr-xScript/launch_cam.sh8
-rwxr-xr-xScript/launch_video.sh10
2 files changed, 9 insertions, 9 deletions
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