summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/org.tizen.homescreen-tv-ref.service6
-rw-r--r--packaging/org.tizen.homescreen-tv-ref.spec12
2 files changed, 8 insertions, 10 deletions
diff --git a/packaging/org.tizen.homescreen-tv-ref.service b/packaging/org.tizen.homescreen-tv-ref.service
index f6d46c3..ee12e2f 100644
--- a/packaging/org.tizen.homescreen-tv-ref.service
+++ b/packaging/org.tizen.homescreen-tv-ref.service
@@ -2,8 +2,4 @@
Description=Homescreen-tv
[Service]
-ExecStart=/usr/bin/launch_app org.tizen.homescreen-tv-ref
-ExecStartPost=/bin/sh -c 'sleep 1; /usr/bin/launch_app org.tizen.homescreen-tv-ref;'
-
-[Install]
-WantedBy=core-efl.target
+ExecStart=/bin/sh -c -l 'sleep 5;/usr/bin/aul_test launch org.tizen.homescreen-tv-ref'
diff --git a/packaging/org.tizen.homescreen-tv-ref.spec b/packaging/org.tizen.homescreen-tv-ref.spec
index e3796ea..11a8424 100644
--- a/packaging/org.tizen.homescreen-tv-ref.spec
+++ b/packaging/org.tizen.homescreen-tv-ref.spec
@@ -31,6 +31,8 @@ BuildRequires: gettext-devel
%define _cfgdir %{_resdir}/config
%define _edjedir %{_resdir}/edje
%define _manifestdir /usr/share/packages
+%define _sysuserdir /systemd/user
+%define _servicedir /systemd/user/default.target.wants
%description
Application for providing user status and tv contents
@@ -54,9 +56,9 @@ make %{?jobs:-j%jobs}
%install
%make_install
install --directory %{buildroot}/%{_datadir}
-install --directory %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
-install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/user/
-ln -sf ../%{name}.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/
+install --directory %{buildroot}%{_libdir}%{_servicedir}
+install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}%{_sysuserdir}
+ln -sf ../%{name}.service %{buildroot}%{_libdir}%{_servicedir}
%clean
rm -rf %{buildroot}
@@ -68,5 +70,5 @@ rm -rf %{buildroot}
%{_resdir}/*
%{_datadir}
%{_manifestdir}/%{name}.xml
-%{_libdir}/systemd/user/%{name}.service
-%{_libdir}/systemd/user/core-efl.target.wants/%{name}.service
+%{_libdir}%{_sysuserdir}/%{name}.service
+%{_libdir}%{_servicedir}/%{name}.service