launch volume app at boot time 05/46105/1 accepted/tizen/tv/20150817.024645 submit/tizen/20150817.014836
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 17 Aug 2015 01:25:41 +0000 (10:25 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 17 Aug 2015 01:25:41 +0000 (10:25 +0900)
Change-Id: Ib9a9081c93bd0867aed5d522fdc49cd5e897cbb2
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
packaging/org.tizen.volume.path [new file with mode: 0644]
packaging/org.tizen.volume.service [new file with mode: 0644]
packaging/org.tizen.volume.spec

diff --git a/packaging/org.tizen.volume.path b/packaging/org.tizen.volume.path
new file mode 100644 (file)
index 0000000..2f5b597
--- /dev/null
@@ -0,0 +1,5 @@
+[Unit]
+Description=This path will tell you that volume is ready to launch
+
+[Path]
+PathExists=/run/.wm_ready
diff --git a/packaging/org.tizen.volume.service b/packaging/org.tizen.volume.service
new file mode 100644 (file)
index 0000000..da14b48
--- /dev/null
@@ -0,0 +1,5 @@
+[Unit]
+Description=volume
+
+[Service]
+ExecStart=/bin/sh -c -l '/usr/bin/aul_test launch org.tizen.volume'
index 23709fc..ebede8a 100644 (file)
@@ -5,6 +5,8 @@ Release:   1
 Group:     Applications
 License:   Apache
 Source0:   %{name}-%{version}.tar.gz
+Source1:   %{name}.service
+Source2:   %{name}.path
 
 BuildRequires: cmake
 BuildRequires: pkgconfig(capi-appfw-application)
@@ -22,6 +24,8 @@ BuildRequires: edje-bin
 %define _datadir %{_pkgdir}/data
 %define _edjedir %{_resdir}/edje
 %define _manifestdir /usr/share/packages
+%define _sysuserdir /systemd/user
+%define _servicedir /systemd/user/default.target.wants
 
 %description
 Volume widget for Tizen TV
@@ -43,6 +47,10 @@ make %{?jobs:-j%jobs}
 %install
 %make_install
 install --directory %{buildroot}/%{_datadir}
+install --directory %{buildroot}%{_libdir}%{_servicedir}
+install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}%{_sysuserdir}
+install -m 0644 %{SOURCE2} %{buildroot}%{_libdir}%{_sysuserdir}
+ln -sf ../%{name}.path %{buildroot}%{_libdir}%{_servicedir}
 
 %clean
 rm -rf %{buildroot}
@@ -53,3 +61,6 @@ rm -rf %{buildroot}
 %{_resdir}/*
 %{_datadir}
 %{_manifestdir}/%{name}.xml
+%{_libdir}%{_sysuserdir}/%{name}.service
+%{_libdir}%{_sysuserdir}/%{name}.path
+%{_libdir}%{_servicedir}/%{name}.path