- For dbus activation, dbus conf file is added.
- Files are installed at the directory according
to the Tizen directory policy.
Change-Id: Ia261c504e3e3464314ddf6e42f7d10fa082b2854
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
PROJECT(${PKGNAME} C)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(LICENSE_DIR "${TZ_SYS_SHARE}/license")
-SET(DBUS_SERVICE_DIR "${TZ_SYS_SHARE}/dbus-1/system-services")
-SET(LOCALE_DIR "${TZ_SYS_SHARE}/locale")
+SET(LICENSE_DIR "${TZ_SYS_RO_SHARE}/license")
+SET(DBUS_SERVICE_DIR "${TZ_SYS_RO_SHARE}/dbus-1/system-services")
+SET(LOCALE_DIR "${TZ_SYS_RO_SHARE}/locale")
SET(LANG_DOMAIN "${PKGNAME}")
ADD_DEFINITIONS("-DPKGNAME=\"${PKGNAME}\"")
<manifest>
- <define>
- <domain name="org.tizen.poweroff-syspopup"/>
- </define>
<request>
- <domain name="org.tizen.poweroff-syspopup"/>
+ <domain name="_"/>
</request>
</manifest>
-DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} \
-DTZ_SYS_SMACK=%{TZ_SYS_SMACK} \
-DTZ_SYS_SHARE=%{TZ_SYS_SHARE} \
+ -DTZ_SYS_RO_SHARE=%{TZ_SYS_RO_SHARE} \
-DTZ_SYS_RO_APP=%{TZ_SYS_RO_APP} \
-DPOWEROFF_POPUP=%{poweroff_popup} \
%{_bindir}/sysapp-launcher
%{_datadir}/license/sysapp-launcher
%{_datadir}/dbus-1/system-services/org.tizen.system.popup.service
+%config %{_sysconfdir}/dbus-1/system.d/launcher.conf
#po files to support multi-languages
%lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/system-servant.mo
%license LICENSE
%defattr(-,root,root,-)
%{TZ_SYS_RO_APP}/org.tizen.poweroff-syspopup/bin/poweroff-popup
-%{TZ_SYS_SHARE}/packages/org.tizen.poweroff-syspopup.xml
+%{TZ_SYS_RO_SHARE}/packages/org.tizen.poweroff-syspopup.xml
%endif
INSTALL(TARGETS ${APPNAME} DESTINATION bin)
INSTALL(FILES ${LAUNCHER_DIR}/org.tizen.system.popup.service DESTINATION ${DBUS_SERVICE_DIR})
+INSTALL(FILES ${LAUNCHER_DIR}/launcher.conf DESTINATION /etc/dbus-1/system.d)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION ${LICENSE_DIR} RENAME ${APPNAME})
--- /dev/null
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy user="root">
+ <allow own="org.tizen.system.popup"/>
+ <allow send_destination="org.tizen.system.popup"/>
+ </policy>
+
+ <policy context="default">
+ <deny send_destination="org.tizen.system.popup"/>
+ </policy>
+</busconfig>
[D-BUS Service]
Name=org.tizen.system.popup
-Exec=/usr/bin/popup-launcher
+Exec=/usr/bin/sysapp-launcher
User=system
SET(POWEROFF_PREFIX "${TZ_SYS_RO_APP}/${PKGNAME}")
SET(BINDIR "${POWEROFF_PREFIX}/bin")
SET(RESDIR "${POWEROFF_PREFIX}/res")
-SET(MANIFESTDIR "${TZ_SYS_SHARE}/packages")
+SET(MANIFESTDIR "${TZ_SYS_RO_SHARE}/packages")
SET(PKG_MODULES
appcore-efl
<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.poweroff-syspopup" version="0.2.0" install-location="internal-only">
+<manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.poweroff-syspopup" api-version="3.0" version="0.2.0" install-location="internal-only">
<label>Power off system popup</label>
<author email="ty317.kim@samsung.com" href="www.samsung.com">Taeyoung Kim</author>
<description>System popup application (power off system popup)</description>