From 95fe6754005c0d1d50c427afcc4878d54e15ca76 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Mon, 17 Aug 2015 10:25:41 +0900 Subject: [PATCH] launch volume app at boot time Change-Id: Ib9a9081c93bd0867aed5d522fdc49cd5e897cbb2 Signed-off-by: Minkyu Kang --- packaging/org.tizen.volume.path | 5 +++++ packaging/org.tizen.volume.service | 5 +++++ packaging/org.tizen.volume.spec | 11 +++++++++++ 3 files changed, 21 insertions(+) create mode 100644 packaging/org.tizen.volume.path create mode 100644 packaging/org.tizen.volume.service diff --git a/packaging/org.tizen.volume.path b/packaging/org.tizen.volume.path new file mode 100644 index 0000000..2f5b597 --- /dev/null +++ b/packaging/org.tizen.volume.path @@ -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 index 0000000..da14b48 --- /dev/null +++ b/packaging/org.tizen.volume.service @@ -0,0 +1,5 @@ +[Unit] +Description=volume + +[Service] +ExecStart=/bin/sh -c -l '/usr/bin/aul_test launch org.tizen.volume' diff --git a/packaging/org.tizen.volume.spec b/packaging/org.tizen.volume.spec index 23709fc..ebede8a 100644 --- a/packaging/org.tizen.volume.spec +++ b/packaging/org.tizen.volume.spec @@ -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 -- 2.7.4