summaryrefslogtreecommitdiff
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
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>
-rwxr-xr-xScript/launch_cam.sh8
-rwxr-xr-xScript/launch_video.sh10
-rw-r--r--packaging/desktop-skin.spec35
3 files changed, 22 insertions, 31 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
diff --git a/packaging/desktop-skin.spec b/packaging/desktop-skin.spec
index f15d25e..39fb2bf 100644
--- a/packaging/desktop-skin.spec
+++ b/packaging/desktop-skin.spec
@@ -1,19 +1,17 @@
-%define USERHOME /home/app
-
Name: desktop-skin
-Summary: Provides desktop-skin.
+Summary: Desktop skin for Tizen:Common
Version: 2.0
-Group: Applications
+Group: Applications/Multimedia
License: GPL-2.0+
Release: 1
-
-
-
Source0: %{name}-%{version}.tar.gz
%description
-Provides desktop-skin.
-
+Provides desktop visuals and test programs
+- desktop background
+- sample media
+- icons
+- test programs
%prep
%setup -q
@@ -25,11 +23,11 @@ mkdir -p %{buildroot}%{_bindir}
install -m 755 Script/launch_cam.sh %{buildroot}%{_bindir}
install -m 755 Script/launch_video.sh %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{USERHOME}
-install -m 644 Video/AmazingNature_480p.mp4 %{buildroot}%{USERHOME}
+mkdir -p %{buildroot}%{_datadir}/media/videos
+install -m 644 Video/AmazingNature_480p.mp4 %{buildroot}%{_datadir}/media/videos
-mkdir -p %{buildroot}%{USERHOME}/Photos
-install -m 644 Photos/* %{buildroot}%{USERHOME}/Photos
+mkdir -p %{buildroot}%{_datadir}/media/photos
+install -m 644 Photos/* %{buildroot}%{_datadir}/media/photos
mkdir -p %{buildroot}%{_datadir}/icons/tizen/32x32
install -m 644 icons/tizen/32x32/* %{buildroot}%{_datadir}/icons/tizen/32x32
@@ -40,19 +38,12 @@ install -m 644 applications/tizen/* %{buildroot}%{_datadir}/applications/tizen
mkdir -p %{buildroot}%{_datadir}/backgrounds/tizen
install -m 644 backgrounds/tizen/golfe-morbihan.jpg %{buildroot}%{_datadir}/backgrounds/tizen/golfe-morbihan.jpg
-%post
-chown -R app:app %{USERHOME}
-
%files
%{_bindir}/launch_cam.sh
%{_bindir}/launch_video.sh
-%{USERHOME}/AmazingNature_480p.mp4
-
-%{USERHOME}/Photos/*
-
+%{_datadir}/media/videos/AmazingNature_480p.mp4
+%{_datadir}/media/photos/*
%{_datadir}/icons/tizen/32x32/*
-
%{_datadir}/applications/tizen/*
-
%{_datadir}/backgrounds/tizen/golfe-morbihan.jpg